on master help sign in
Add forth-lsp and update tree-sitter-forth (#7334)
b4fe31cAlexander Brevig
book/src/generated/lang-support.md+1−1
@@ -41,7 +41,7 @@
41| erlang | ✓ | ✓ | | `erlang_ls` |
41| erlang | ✓ | ✓ | | `erlang_ls` |
42| esdl | ✓ | | | |
42| esdl | ✓ | | | |
43| fish | ✓ | ✓ | ✓ | |
43| fish | ✓ | ✓ | ✓ | |
44−| forth | ✓ | | | |
44+| forth | ✓ | | | `forth-lsp` |
45| fortran | ✓ | | ✓ | `fortls` |
45| fortran | ✓ | | ✓ | `fortls` |
46| gdscript | ✓ | ✓ | ✓ | |
46| gdscript | ✓ | ✓ | ✓ | |
47| git-attributes | ✓ | | | |
47| git-attributes | ✓ | | | |
languages.toml+3−1
@@ -24,6 +24,7 @@ elm-language-server = { command = "elm-language-server" }
24elvish = { command = "elvish", args = ["-lsp"] }
24elvish = { command = "elvish", args = ["-lsp"] }
25erlang-ls = { command = "erlang_ls" }
25erlang-ls = { command = "erlang_ls" }
26forc = { command = "forc", args = ["lsp"] }
26forc = { command = "forc", args = ["lsp"] }
27+forth-lsp = { command = "forth-lsp" }
27fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
28fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
28gleam = { command = "gleam", args = ["lsp"] }
29gleam = { command = "gleam", args = ["lsp"] }
29haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
30haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
@@ -2606,11 +2607,12 @@ injection-regex = "forth"
2606file-types = ["fs", "forth", "fth", "4th"]
2607file-types = ["fs", "forth", "fth", "4th"]
2607roots = []
2608roots = []
2608comment-token = "\\"
2609comment-token = "\\"
2610+language-servers = [ "forth-lsp" ]
2609indent = { tab-width = 3, unit = " " }
2611indent = { tab-width = 3, unit = " " }
2610
2612
2611[[grammar]]
2613[[grammar]]
2612name = "forth"
2614name = "forth"
2613−source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "c6fae50a17763af827604627c0fa9e4604aaac0b" }
2615+source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "304ed77beb113e37af38b20ff14e3c37bf350d10" }
2614
2616
2615[[language]]
2617[[language]]
2616name = "t32"
2618name = "t32"
runtime/queries/forth/highlights.scm+1−2
@@ -1,7 +1,6 @@
1([(start_definition)(end_definition)] @keyword)
1([(start_definition)(end_definition)] @keyword)
2−([(lparen) (rparen)] @punctuation.bracket)
3−((stack_effect_sep) @punctuation)
4((number) @constant)
2((number) @constant)
3+((string) @string)
5((word) @function)
4((word) @function)
6((comment) @comment)
5((comment) @comment)
7([(core)] @type)
6([(core)] @type)