language-kotlin

所属分类:其他
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2023-10-18 14:38:30
上 传 者sh-1993
说明:  Kotlin编程语言的文本语言语法,
(Textmate language grammar for the Kotlin programming language,)

文件列表:
.prettierignore (6, 2023-11-18)
.prettierrc (3, 2023-11-18)
.vscode/ (0, 2023-11-18)
.vscode/settings.json (132, 2023-11-18)
CODE_OF_CONDUCT.md (3223, 2023-11-18)
LICENSE (11341, 2023-11-18)
NOTICE (657, 2023-11-18)
dist/ (0, 2023-11-18)
dist/Kotlin.JSON-tmLanguage (30071, 2023-11-18)
dist/Kotlin.YAML-tmLanguage (19808, 2023-11-18)
dist/Kotlin.tmLanguage (54617, 2023-11-18)
package-lock.json (38231, 2023-11-18)
package.json (1421, 2023-11-18)
scripts/ (0, 2023-11-18)
scripts/build.js (1530, 2023-11-18)
scripts/coverage.js (8480, 2023-11-18)
scripts/format.js (807, 2023-11-18)
scripts/util.js (1200, 2023-11-18)
snapshots/ (0, 2023-11-18)
snapshots/corpus.kt (3711, 2023-11-18)
snapshots/corpus.kt.snap (109961, 2023-11-18)
src/ (0, 2023-11-18)
src/annotations.YAML-tmLanguage (965, 2023-11-18)
src/classes.YAML-tmLanguage (3328, 2023-11-18)
src/comments.YAML-tmLanguage (1187, 2023-11-18)
src/functions.YAML-tmLanguage (4573, 2023-11-18)
src/generic.YAML-tmLanguage (1314, 2023-11-18)
src/ident.YAML-tmLanguage (226, 2023-11-18)
src/imports.YAML-tmLanguage (580, 2023-11-18)
src/index.YAML-tmLanguage (2553, 2023-11-18)
src/keywords.YAML-tmLanguage (3806, 2023-11-18)
src/literals.YAML-tmLanguage (5382, 2023-11-18)
src/objects.YAML-tmLanguage (3181, 2023-11-18)
src/package.YAML-tmLanguage (302, 2023-11-18)
src/types.YAML-tmLanguage (1490, 2023-11-18)
... ...

# Language Kotlin A textmate compatible grammar for the Kotlin language. ![Node.js CI](https://github.com/nishtahir/language-kotlin/workflows/Node.js%20CI/badge.svg?branch=master) [![codecov](https://codecov.io/gh/nishtahir/language-kotlin/branch/master/graph/badge.svg)](https://codecov.io/gh/nishtahir/language-kotlin) ## Setup This project is built using a couple of handy node scripts. Begin by installing the required dependencies. ``` $ npm install ``` ## Build Changes to the grammar should be made in the `src` folder. These are merged at build time and used to produce the final artifact. Once you are satisfied with your changes, you will need to generate `xml` and `json` variants for distribution. There's a handy build script available to automate this process. ``` $ npm run build ``` This will outputs the merged sources to the `dist` directory. At this point it's highly recommended that you test your changes using [GitHub Lightshow](https://github-lightshow.herokuapp.com/). There's some manual work involved in doing this however this is the closest representation of what it would look like when it is deployed that is available at this time. You can format your sources using the code formatting script. ``` $ npm run format ``` ## Testing > All changes to the grammar must be accompanied by tests covering relevant scopes. Tests are run using [`vscode-tmgrammar-test`](https://github.com/PanAeon/vscode-tmgrammar-test). Test cases and regression tests are available in the `/test` folder. Generated snapshots are available in the `/snapshots` folder and should be updated with changes to the grammar. The test suite can be run using `npm` ``` $ npm test ``` ## Useful resources - [NovaLightshow](https://novalightshow.netlify.app/) - Useful for testing Grammar sources against Code to inspect the highlighting behavior. Thanks to [Nixinova](https://github.com/Nixinova/NovaLightshow) - [Sublime Text scope naming reference](https://www.sublimetext.com/docs/3/scope_naming.html) - Reference on Textmate scope naming ## Code of Conduct Please note we have a [code of conduct](./CODE_OF_CONDUCT.md) which _must_ be observed in interactions with the project.

近期下载者

相关文件


收藏者