mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-08-17 03:50:21 +03:00
Add support for Forth (#7256)
This commit is contained in:
parent
71688a387b
commit
78e8695420
@ -41,6 +41,7 @@
|
||||
| erlang | ✓ | ✓ | | `erlang_ls` |
|
||||
| esdl | ✓ | | | |
|
||||
| fish | ✓ | ✓ | ✓ | |
|
||||
| forth | ✓ | | | |
|
||||
| fortran | ✓ | | ✓ | `fortls` |
|
||||
| gdscript | ✓ | ✓ | ✓ | |
|
||||
| git-attributes | ✓ | | | |
|
||||
|
@ -2592,3 +2592,16 @@ indent = { tab-width = 4, unit = " " }
|
||||
[[grammar]]
|
||||
name = "blueprint"
|
||||
source = { git = "https://gitlab.com/gabmus/tree-sitter-blueprint", rev = "7f1a5df44861291d6951b6b2146a9fef4c226e14" }
|
||||
|
||||
[[language]]
|
||||
name = "forth"
|
||||
scope = "source.forth"
|
||||
injection-regex = "forth"
|
||||
file-types = ["fs", "forth", "fth", "4th"]
|
||||
roots = []
|
||||
comment-token = "\\"
|
||||
indent = { tab-width = 3, unit = " " }
|
||||
|
||||
[[grammar]]
|
||||
name = "forth"
|
||||
source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "c6fae50a17763af827604627c0fa9e4604aaac0b" }
|
||||
|
8
runtime/queries/forth/highlights.scm
Normal file
8
runtime/queries/forth/highlights.scm
Normal file
@ -0,0 +1,8 @@
|
||||
([(start_definition)(end_definition)] @keyword)
|
||||
([(lparen) (rparen)] @punctuation.bracket)
|
||||
((stack_effect_sep) @punctuation)
|
||||
((number) @constant)
|
||||
((word) @function)
|
||||
((comment) @comment)
|
||||
([(core)] @type)
|
||||
([(operator)] @operator)
|
Loading…
Reference in New Issue
Block a user