Skip to content

Commit

Permalink
Add forth-lsp and update tree-sitter-forth (helix-editor#7334)
Browse files Browse the repository at this point in the history
* feat: add forth lsp and update tree sitter

* fix: update highlights
  • Loading branch information
AlexanderBrevig authored and Schuyler Mortimer committed Jul 10, 2024
1 parent bca9fbb commit 0ec6a08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
| erlang ||| | `erlang_ls` |
| esdl || | | |
| fish |||| |
| forth || | | |
| forth || | | `forth-lsp` |
| fortran || || `fortls` |
| gdscript |||| |
| git-attributes || | | |
Expand Down
4 changes: 3 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ elm-language-server = { command = "elm-language-server" }
elvish = { command = "elvish", args = ["-lsp"] }
erlang-ls = { command = "erlang_ls" }
forc = { command = "forc", args = ["lsp"] }
forth-lsp = { command = "forth-lsp" }
fortls = { command = "fortls", args = ["--lowercase_intrinsics"] }
gleam = { command = "gleam", args = ["lsp"] }
haskell-language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] }
Expand Down Expand Up @@ -2606,11 +2607,12 @@ injection-regex = "forth"
file-types = ["fs", "forth", "fth", "4th"]
roots = []
comment-token = "\\"
language-servers = [ "forth-lsp" ]
indent = { tab-width = 3, unit = " " }

[[grammar]]
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]]
name = "t32"
Expand Down
3 changes: 1 addition & 2 deletions runtime/queries/forth/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
([(start_definition)(end_definition)] @keyword)
([(lparen) (rparen)] @punctuation.bracket)
((stack_effect_sep) @punctuation)
((number) @constant)
((string) @string)
((word) @function)
((comment) @comment)
([(core)] @type)
Expand Down

0 comments on commit 0ec6a08

Please sign in to comment.