Skip to content

Commit

Permalink
Added ungrammar language support (helix-editor#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp-M authored and thomasskk committed Sep 9, 2022
1 parent b342e74 commit cc767b6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
| tsx || | | `typescript-language-server` |
| twig || | | |
| typescript || || `typescript-language-server` |
| ungrammar || | | |
| v || | | `vls` |
| vala || | | `vala-language-server` |
| verilog ||| | `svlangserver` |
Expand Down
15 changes: 14 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1527,4 +1527,17 @@ language-server = { command = "fortls", args = ["--lowercase_intrinsics"] }

[[grammar]]
name = "fortran"
source = { git = "https://github.com/stadelmanma/tree-sitter-fortran", rev = "f0f2f100952a353e64e26b0fa710b4c296d7af13" }
source = { git = "https://github.com/stadelmanma/tree-sitter-fortran", rev = "f0f2f100952a353e64e26b0fa710b4c296d7af13" }

[[language]]
name = "ungrammar"
scope = "source.ungrammar"
injection-regex = "ungrammar"
file-types = ["ungram", "ungrammar"]
roots = []
comment-token = "//"
indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "ungrammar"
source = { git = "https://github.com/Philipp-M/tree-sitter-ungrammar", rev = "0113de880a58ea14f2a75802e9b99fcc25003d9c" }
17 changes: 17 additions & 0 deletions runtime/queries/ungrammar/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(ERROR) @error

(line_comment) @comment

(identifier) @variable

(token) @string

[
"="
"|"
":"
"("
")"
"?"
"*"
] @operator

0 comments on commit cc767b6

Please sign in to comment.