mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-08-17 03:50:21 +03:00
feat(lang): Cpon lang support (#2355)
Co-authored-by: Fanda Vacek <fvacek@elektroline.cz>
This commit is contained in:
parent
ede01b5f1e
commit
1668183590
@ -6,6 +6,7 @@
|
||||
| cairo | ✓ | | | |
|
||||
| cmake | ✓ | ✓ | ✓ | `cmake-language-server` |
|
||||
| comment | ✓ | | | |
|
||||
| cpon | ✓ | | ✓ | |
|
||||
| cpp | ✓ | ✓ | ✓ | `clangd` |
|
||||
| css | ✓ | | | `vscode-css-language-server` |
|
||||
| dart | ✓ | | ✓ | `dart` |
|
||||
|
@ -1289,3 +1289,17 @@ indent = { tab-width = 4, unit = " " }
|
||||
[[grammar]]
|
||||
name = "cairo"
|
||||
source = { git = "https://github.com/archseer/tree-sitter-cairo", rev = "5155c6eb40db6d437f4fa41b8bcd8890a1c91716" }
|
||||
|
||||
[[language]]
|
||||
name = "cpon"
|
||||
scope = "scope.cpon"
|
||||
injection-regex = "^cpon$"
|
||||
file-types = ["cpon", "cp"]
|
||||
roots = []
|
||||
auto-format = true
|
||||
comment-token = "//"
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
name = "cpon"
|
||||
source = { git = "https://github.com/fvacek/tree-sitter-cpon", rev = "11ba46a4de3eb86934003133099c9963a60f9687" }
|
||||
|
26
runtime/queries/cpon/highlights.scm
Normal file
26
runtime/queries/cpon/highlights.scm
Normal file
@ -0,0 +1,26 @@
|
||||
[
|
||||
(true)
|
||||
(false)
|
||||
] @constant.builtin.boolean
|
||||
(null) @constant.builtin
|
||||
(number) @constant.numeric
|
||||
(pair
|
||||
key: (_) @keyword)
|
||||
(ipair
|
||||
key: (_) @keyword)
|
||||
(mpair
|
||||
key: (_) @keyword)
|
||||
|
||||
(string) @string
|
||||
(escape_sequence) @constant.character.escape
|
||||
(ERROR) @error
|
||||
|
||||
"," @punctuation.delimiter
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
"<"
|
||||
">"
|
||||
] @punctuation.bracket
|
12
runtime/queries/cpon/indents.scm
Normal file
12
runtime/queries/cpon/indents.scm
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
(meta)
|
||||
(map)
|
||||
(imap)
|
||||
(array)
|
||||
] @indent
|
||||
|
||||
[
|
||||
"]"
|
||||
"}"
|
||||
">"
|
||||
] @outdent
|
Loading…
Reference in New Issue
Block a user