on master help sign in
Add support for Forth (#7256)
78e8695Alexander Brevig
book/src/generated/lang-support.md+1
@@ -41,6 +41,7 @@
41| erlang | ✓ | ✓ | | `erlang_ls` |
41| erlang | ✓ | ✓ | | `erlang_ls` |
42| esdl | ✓ | | | |
42| esdl | ✓ | | | |
43| fish | ✓ | ✓ | ✓ | |
43| fish | ✓ | ✓ | ✓ | |
44+| forth | ✓ | | | |
44| fortran | ✓ | | ✓ | `fortls` |
45| fortran | ✓ | | ✓ | `fortls` |
45| gdscript | ✓ | ✓ | ✓ | |
46| gdscript | ✓ | ✓ | ✓ | |
46| git-attributes | ✓ | | | |
47| git-attributes | ✓ | | | |
languages.toml+13
@@ -2592,3 +2592,16 @@ indent = { tab-width = 4, unit = " " }
2592[[grammar]]
2592[[grammar]]
2593name = "blueprint"
2593name = "blueprint"
2594source = { git = "https://gitlab.com/gabmus/tree-sitter-blueprint", rev = "7f1a5df44861291d6951b6b2146a9fef4c226e14" }
2594source = { git = "https://gitlab.com/gabmus/tree-sitter-blueprint", rev = "7f1a5df44861291d6951b6b2146a9fef4c226e14" }
2595+
2596+[[language]]
2597+name = "forth"
2598+scope = "source.forth"
2599+injection-regex = "forth"
2600+file-types = ["fs", "forth", "fth", "4th"]
2601+roots = []
2602+comment-token = "\\"
2603+indent = { tab-width = 3, unit = " " }
2604+
2605+[[grammar]]
2606+name = "forth"
2607+source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "c6fae50a17763af827604627c0fa9e4604aaac0b" }
runtime/queries/forth/highlights.scmnew file+8
@@ -0,0 +1,8 @@
1+([(start_definition)(end_definition)] @keyword)
2+([(lparen) (rparen)] @punctuation.bracket)
3+((stack_effect_sep) @punctuation)
4+((number) @constant)
5+((word) @function)
6+((comment) @comment)
7+([(core)] @type)
8+([(operator)] @operator)