Kotlin
A sublime-syntax for Kotlin
Details
Installs
- Total 59K
- Win 23K
- Mac 24K
- Linux 12K
| Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 1 | 7 | 4 | 8 | 3 | 2 | 3 | 3 | 3 | 4 | 3 | 1 | 4 | 0 | 4 | 5 | 7 | 2 | 1 | 2 | 2 | 7 | 3 | 3 | 4 | 1 | 1 | 2 | 5 | 2 | 2 | 3 | 0 |
| Mac | 0 | 5 | 4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 4 | 7 | 3 | 6 | 10 | 5 | 2 | 3 | 4 | 7 | 6 | 8 | 4 | 3 | 1 | 5 | 8 | 8 | 3 | 2 | 2 | 3 | 2 | 3 | 5 | 3 | 1 | 2 | 3 | 6 | 6 | 5 | 1 | 3 | 3 |
| Linux | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 0 | 4 | 2 | 3 | 3 | 2 | 10 | 5 | 1 | 2 | 6 | 1 | 3 | 0 | 1 | 2 | 2 | 0 | 3 | 4 | 1 | 0 | 4 | 2 | 5 | 2 | 2 | 6 | 3 | 5 |
Readme
- Source
- raw.githubusercontent.com
Kotlin syntax for Sublime Text
This package contains a Sublime Text syntax for the Kotlin language. It is only available for versions of ST equal or newer to 4075.
Its main aim is replacing an older package that had lackluster support for newer features and broke highlighting in many edge cases.
[!NOTE] The other package sets a
source.Kotlinscope. This one follows a more standardsource.kotlin
Rollback
If you want to use the previous package, you will need to disable the package and install the previous package manually, following the instructions on their README. I would encourage you to open an issue on this repo so we can improve the package, though!
Installation
Most users will want to install via Package Control, where the package is named “Kotlin”.
Contributing
This syntax was generated by AI. Because currently-available AI is terrible at dealing with sublime syntax format, I used this custom harness to write tests. That means syntax tests are duplicated across two places:
- yaml_tests: These are AI inputs. The harness translates them to sublime syntax test files.
- tests: These are sublime syntax test files, added manually or via conversion from the YAML tests.
A file like yaml_tests/foo.yaml generates a corresponding tests/syntax_test_foo.
Experienced syntax writers are welcome to contribute as they usually would, ensuring their changes include new tests. It is fine to only write sublime syntax tests, just make sure there is no clashing in the names. If you want to make an edit to the existing syntax tests, you will need to adjust the corresponding YAML test and re-generate them. Sorry!
AI contributions are accepted, with some caveats: - It is very strongly recommended you follow the instructions here to set up your environment for developing. The documentation on that repo is admittedly not great but I think it's simple enough that it shouldn't be an issue. - PRs must have sufficient testing coverage for new changes and passing regression tests. Old tests must be passing and may only be adjusted when they were incorrect or incomplete. Removing other test cases would indicate you've introduced a regression. - Please use capable models. The first version of the syntax was generated with GPT-5.4 on xhigh. Smaller models are likely to struggle more and introduce bugs.