mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
Added ungrammar language support (#3048)
This commit is contained in:
parent
fb62569785
commit
e97b8607c1
@ -98,6 +98,7 @@
|
|||||||
| tsx | ✓ | | | `typescript-language-server` |
|
| tsx | ✓ | | | `typescript-language-server` |
|
||||||
| twig | ✓ | | | |
|
| twig | ✓ | | | |
|
||||||
| typescript | ✓ | | ✓ | `typescript-language-server` |
|
| typescript | ✓ | | ✓ | `typescript-language-server` |
|
||||||
|
| ungrammar | ✓ | | | |
|
||||||
| v | ✓ | | | `vls` |
|
| v | ✓ | | | `vls` |
|
||||||
| vala | ✓ | | | `vala-language-server` |
|
| vala | ✓ | | | `vala-language-server` |
|
||||||
| verilog | ✓ | ✓ | | `svlangserver` |
|
| verilog | ✓ | ✓ | | `svlangserver` |
|
||||||
|
@ -1528,3 +1528,16 @@ language-server = { command = "fortls", args = ["--lowercase_intrinsics"] }
|
|||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "fortran"
|
name = "fortran"
|
||||||
source = { git = "https://github.com/stadelmanma/tree-sitter-fortran", rev = "f0f2f100952a353e64e26b0fa710b4c296d7af13" }
|
source = { git = "https://github.com/stadelmanma/tree-sitter-fortran", rev = "f0f2f100952a353e64e26b0fa710b4c296d7af13" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "ungrammar"
|
||||||
|
scope = "source.ungrammar"
|
||||||
|
injection-regex = "ungrammar"
|
||||||
|
file-types = ["ungram", "ungrammar"]
|
||||||
|
roots = []
|
||||||
|
comment-token = "//"
|
||||||
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "ungrammar"
|
||||||
|
source = { git = "https://github.com/Philipp-M/tree-sitter-ungrammar", rev = "0113de880a58ea14f2a75802e9b99fcc25003d9c" }
|
||||||
|
17
runtime/queries/ungrammar/highlights.scm
Normal file
17
runtime/queries/ungrammar/highlights.scm
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
(ERROR) @error
|
||||||
|
|
||||||
|
(line_comment) @comment
|
||||||
|
|
||||||
|
(identifier) @variable
|
||||||
|
|
||||||
|
(token) @string
|
||||||
|
|
||||||
|
[
|
||||||
|
"="
|
||||||
|
"|"
|
||||||
|
":"
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"?"
|
||||||
|
"*"
|
||||||
|
] @operator
|
Loading…
Reference in New Issue
Block a user