Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit aa06466

Browse files
committed
Initial commit
Add the TextMate grammar previously located in the KotlinLanguageServer repository.
0 parents  commit aa06466

6 files changed

+615
-0
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
.vscode
3+
.idea
4+
bin
5+
build
6+
node_modules

Icon128.png

1.66 KB
Loading

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# KotlinLanguageGrammars
2+
[TextMate](https://macromates.com/manual/en/language_grammars) and [Tree-Sitter](http://tree-sitter.github.io/tree-sitter/) language grammars for [Kotlin](https://kotlinlang.org).
3+
4+
![Icon](Icon128.png)
5+
6+
The grammars are based on the [official language grammar](https://kotlinlang.org/docs/reference/grammar.html).
7+
8+
## Tree-Sitter
9+
10+
### Setup
11+
12+
First, make sure to have Node.js 8 installed. Then run
13+
14+
>`npm install -g tree-sitter-cli`
15+
16+
to install the parser generator.
17+
18+
### Compilation
19+
20+
To re-compile the grammar, navigate to the `tree-sitter` directory and run:
21+
22+
>`tree-sitter generate`
23+
24+
## See also
25+
26+
* [KotlinLanguageServer](https://github.com/fwcd/KotlinLanguageServer) for code completion, diagnostics and more
27+
* [KotlinDebugAdapter](https://github.com/fwcd/KotlinDebugAdapter) for JVM debugging support

0 commit comments

Comments
 (0)