Add forth-lsp and update tree-sitter-forth (#7334)

* feat: add forth lsp and update tree sitter

* fix: update highlights
This commit is contained in:
Alexander Brevig 2023-06-16 23:12:29 +02:00 committed by GitHub
parent d8b7232a47
commit b4fe31cad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,7 @@
| erlang | ✓ | ✓ | | `erlang_ls` | | erlang | ✓ | ✓ | | `erlang_ls` |
| esdl | ✓ | | | | | esdl | ✓ | | | |
| fish | ✓ | ✓ | ✓ | | | fish | ✓ | ✓ | ✓ | |
| forth | ✓ | | | | | forth | ✓ | | | `forth-lsp` |
| fortran | ✓ | | ✓ | `fortls` | | fortran | ✓ | | ✓ | `fortls` |
| gdscript | ✓ | ✓ | ✓ | | | gdscript | ✓ | ✓ | ✓ | |
| git-attributes | ✓ | | | | | git-attributes | ✓ | | | |

View File

@ -24,6 +24,7 @@ elm-language-server = { command = "elm-language-server" }
elvish = { command = "elvish", args = ["-lsp"] } elvish = { command = "elvish", args = ["-lsp"] }
erlang-ls = { command = "erlang_ls" } erlang-ls = { command = "erlang_ls" }
forc = { command = "forc", args = ["lsp"] } forc = { command = "forc", args = ["lsp"] }
forth-lsp = { command = "forth-lsp" }
fortls = { command = "fortls", args = ["--lowercase_intrinsics"] } fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
gleam = { command = "gleam", args = ["lsp"] } gleam = { command = "gleam", args = ["lsp"] }
haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] } haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
@ -2606,11 +2607,12 @@ injection-regex = "forth"
file-types = ["fs", "forth", "fth", "4th"] file-types = ["fs", "forth", "fth", "4th"]
roots = [] roots = []
comment-token = "\\" comment-token = "\\"
language-servers = [ "forth-lsp" ]
indent = { tab-width = 3, unit = " " } indent = { tab-width = 3, unit = " " }
[[grammar]] [[grammar]]
name = "forth" name = "forth"
source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "c6fae50a17763af827604627c0fa9e4604aaac0b" } source = { git = "https://github.com/alexanderbrevig/tree-sitter-forth", rev = "304ed77beb113e37af38b20ff14e3c37bf350d10" }
[[language]] [[language]]
name = "t32" name = "t32"

View File

@ -1,7 +1,6 @@
([(start_definition)(end_definition)] @keyword) ([(start_definition)(end_definition)] @keyword)
([(lparen) (rparen)] @punctuation.bracket)
((stack_effect_sep) @punctuation)
((number) @constant) ((number) @constant)
((string) @string)
((word) @function) ((word) @function)
((comment) @comment) ((comment) @comment)
([(core)] @type) ([(core)] @type)