Add XCompose language and highlighter (#3402)

* Add XCompose language and highlighter

* XCompose fix some errors in the Travis build

* Remove xmodmap files for XCompose

Most xmodmap files aren't XCompose, and there's not enough xmodmap files
which are XCompose to be worth adding to heuristics

* Remove some extensions/filenames from XCompose

* Rename and move sample to correct folder and filename

That we have added in languages.yml

* Use generated language id
This commit is contained in:
Samantha McVey
2017-01-03 13:29:00 -08:00
committed by Brandon Black
parent 04c268e535
commit 8f2820e9cc
7 changed files with 1340 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -809,3 +809,6 @@
[submodule "vendor/grammars/reason"]
path = vendor/grammars/reason
url = https://github.com/facebook/reason
[submodule "vendor/grammars/language-xcompose"]
path = vendor/grammars/language-xcompose
url = https://github.com/samcv/language-xcompose

View File

@@ -439,6 +439,8 @@ vendor/grammars/language-wavefront:
- source.wavefront.obj
vendor/grammars/language-xbase:
- source.harbour
vendor/grammars/language-xcompose:
- config.xcompose
vendor/grammars/language-yaml:
- source.yaml
vendor/grammars/language-yang:

View File

@@ -4584,6 +4584,15 @@ XC:
codemirror_mode: clike
codemirror_mime_type: text/x-csrc
language_id: 398
XCompose:
type: data
filenames:
- ".XCompose"
- "XCompose"
- "xcompose"
tm_scope: 'config.xcompose'
ace_mode: text
language_id: 225167241
XML:
type: data
ace_mode: xml

File diff suppressed because it is too large Load Diff

1
vendor/README.md vendored
View File

@@ -361,6 +361,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **X10:** [x10-lang/x10-highlighting](https://github.com/x10-lang/x10-highlighting)
- **xBase:** [hernad/atom-language-harbour](https://github.com/hernad/atom-language-harbour)
- **XC:** [graymalkin/xc.tmbundle](https://github.com/graymalkin/xc.tmbundle)
- **XCompose:** [samcv/language-xcompose](https://github.com/samcv/language-xcompose)
- **XML:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)
- **Xojo:** [angryant0007/VBDotNetSyntax](https://github.com/angryant0007/VBDotNetSyntax)
- **XProc:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)

View File

@@ -0,0 +1,27 @@
---
type: grammar
name: language-xcompose
license: mit
---
The MIT License (MIT)
Copyright (c) 2016 Samantha McVey
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.