on master help sign in
Add forth-lsp and update tree-sitter-forth (#7334)

* feat: add forth lsp and update tree sitter * fix: update highlights

commitb4fe31cad61caa64ae735db104a4d510ad14c6d7 authorAlexander Brevig <alexanderbrevig@gmail.com> dateFri 16 Jun 2023, 23:12 (3 years ago) parentd8b7232
3 files changed+5−4
book/src/generated/lang-support.md+1−1 languages.toml+3−1 runtime/queries/forth/highlights.scm+1−2
book/src/generated/lang-support.md+1−1
@@ -41,7 +41,7 @@
4141| erlang | ✓ | ✓ | | `erlang_ls` |
4242| esdl | ✓ | | | |
4343| fish | ✓ | ✓ | ✓ | |
44−| forth | ✓ | | | |
44+| forth | ✓ | | | `forth-lsp` |
4545| fortran | ✓ | | ✓ | `fortls` |
4646| gdscript | ✓ | ✓ | ✓ | |
4747| git-attributes | ✓ | | | |
languages.toml+3−1
@@ -24,6 +24,7 @@ elm-language-server = { command = "elm-language-server" }
2424elvish = { command = "elvish", args = ["-lsp"] }
2525erlang-ls = { command = "erlang_ls" }
2626forc = { command = "forc", args = ["lsp"] }
27+forth-lsp = { command = "forth-lsp" }
2728fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
2829gleam = { command = "gleam", args = ["lsp"] }
2930haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
@@ -2606,11 +2607,12 @@ injection-regex = "forth"
26062607file-types = ["fs", "forth", "fth", "4th"]
26072608roots = []
26082609comment-token = "\\"
2610+language-servers = [ "forth-lsp" ]
26092611indent = { tab-width = 3, unit = " " }
26102612
26112613[[grammar]]
26122614name = "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" }
26142616
26152617[[language]]
26162618name = "t32"
runtime/queries/forth/highlights.scm+1−2
@@ -1,7 +1,6 @@
11([(start_definition)(end_definition)] @keyword)
2−([(lparen) (rparen)] @punctuation.bracket)
3−((stack_effect_sep) @punctuation)
42((number) @constant)
3+((string) @string)
54((word) @function)
65((comment) @comment)
76([(core)] @type)