Replace Kotlin language grammar (#4065)

This commit is contained in:
Nish Tahir
2018-03-28 11:57:17 -04:00
committed by Colin Seymour
parent 03f394626d
commit ba1cf12776
7 changed files with 32 additions and 12 deletions

6
.gitmodules vendored
View File

@@ -433,9 +433,6 @@
[submodule "vendor/grammars/json.tmbundle"] [submodule "vendor/grammars/json.tmbundle"]
path = vendor/grammars/json.tmbundle path = vendor/grammars/json.tmbundle
url = https://github.com/textmate/json.tmbundle url = https://github.com/textmate/json.tmbundle
[submodule "vendor/grammars/kotlin-sublime-package"]
path = vendor/grammars/kotlin-sublime-package
url = https://github.com/vkostyukov/kotlin-sublime-package
[submodule "vendor/grammars/language-agc"] [submodule "vendor/grammars/language-agc"]
path = vendor/grammars/language-agc path = vendor/grammars/language-agc
url = https://github.com/Alhadis/language-agc url = https://github.com/Alhadis/language-agc
@@ -520,6 +517,9 @@
[submodule "vendor/grammars/language-jsoniq"] [submodule "vendor/grammars/language-jsoniq"]
path = vendor/grammars/language-jsoniq path = vendor/grammars/language-jsoniq
url = https://github.com/wcandillon/language-jsoniq url = https://github.com/wcandillon/language-jsoniq
[submodule "vendor/grammars/language-kotlin"]
path = vendor/grammars/language-kotlin
url = https://github.com/nishtahir/language-kotlin
[submodule "vendor/grammars/language-less"] [submodule "vendor/grammars/language-less"]
path = vendor/grammars/language-less path = vendor/grammars/language-less
url = https://github.com/atom/language-less.git url = https://github.com/atom/language-less.git

View File

@@ -358,8 +358,6 @@ vendor/grammars/jflex.tmbundle:
- source.jflex - source.jflex
vendor/grammars/json.tmbundle: vendor/grammars/json.tmbundle:
- source.json - source.json
vendor/grammars/kotlin-sublime-package:
- source.Kotlin
vendor/grammars/language-agc: vendor/grammars/language-agc:
- source.agc - source.agc
vendor/grammars/language-apl: vendor/grammars/language-apl:
@@ -442,6 +440,8 @@ vendor/grammars/language-jolie:
vendor/grammars/language-jsoniq: vendor/grammars/language-jsoniq:
- source.jq - source.jq
- source.xq - source.xq
vendor/grammars/language-kotlin:
- source.kotlin
vendor/grammars/language-less: vendor/grammars/language-less:
- source.css.less - source.css.less
vendor/grammars/language-maxscript: vendor/grammars/language-maxscript:

View File

@@ -2268,7 +2268,7 @@ Kotlin:
- ".kt" - ".kt"
- ".ktm" - ".ktm"
- ".kts" - ".kts"
tm_scope: source.Kotlin tm_scope: source.kotlin
ace_mode: text ace_mode: text
codemirror_mode: clike codemirror_mode: clike
codemirror_mime_type: text/x-kotlin codemirror_mime_type: text/x-kotlin

2
vendor/README.md vendored
View File

@@ -189,7 +189,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **KiCad Legacy Layout:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb) - **KiCad Legacy Layout:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb)
- **KiCad Schematic:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb) - **KiCad Schematic:** [Alhadis/language-pcb](https://github.com/Alhadis/language-pcb)
- **Kit:** [textmate/html.tmbundle](https://github.com/textmate/html.tmbundle) - **Kit:** [textmate/html.tmbundle](https://github.com/textmate/html.tmbundle)
- **Kotlin:** [vkostyukov/kotlin-sublime-package](https://github.com/vkostyukov/kotlin-sublime-package) - **Kotlin:** [nishtahir/language-kotlin](https://github.com/nishtahir/language-kotlin)
- **LabVIEW:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle) - **LabVIEW:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)
- **Lasso:** [bfad/Sublime-Lasso](https://github.com/bfad/Sublime-Lasso) - **Lasso:** [bfad/Sublime-Lasso](https://github.com/bfad/Sublime-Lasso)
- **Latte:** [textmate/php-smarty.tmbundle](https://github.com/textmate/php-smarty.tmbundle) - **Latte:** [textmate/php-smarty.tmbundle](https://github.com/textmate/php-smarty.tmbundle)

View File

@@ -1,9 +1,8 @@
--- ---
type: grammar type: grammar
name: kotlin-sublime-package name: language-kotlin
license: apache-2.0 license: apache-2.0
--- ---
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
@@ -184,7 +183,7 @@ license: apache-2.0
APPENDIX: How to apply the Apache License to your work. APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]" boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a comment syntax for the file format. We also recommend that a
@@ -192,7 +191,7 @@ license: apache-2.0
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright 2012-2014 Vladimir Kostyukov Copyright 2018 Nish Tahir
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@@ -205,3 +204,24 @@ license: apache-2.0
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--------------------------------------------------------------------------------
=========================================================================
== NOTICE file corresponding to the section 4 d of ==
== the Apache License, Version 2.0, ==
=========================================================================
This product includes software developed as part of:
Kotlin Sublime Text 2 Package (https://github.com/vkostyukov/kotlin-sublime-package).
This product includes software developed as part of:
VSCode Kotlin project (https://github.com/mathiasfrohlich/vscode-kotlin).
Copyright for portions of project `language-kotlin` are held by
1. Vladimir Kostyukov, 2017 as part of project `vkostyukov/kotlin-sublime-package`
2. Mathias Frøhlich, 2018 as part of project `mathiasfrohlich/vscode-kotlin`
All other copyright for project `language-kotlin` are held by Nish Tahir 2018.