Skip to content

Commit

Permalink
Add LPF tree sitter (helix-editor#8536)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Davis <[email protected]>
  • Loading branch information
2 people authored and dgkf committed Jan 30, 2024
1 parent 663578d commit 4a261fc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
| llvm |||| |
| llvm-mir |||| |
| llvm-mir-yaml || || |
| lpf || | | |
| lua |||| `lua-language-server` |
| make || | | |
| markdoc || | | `markdoc-ls` |
Expand Down
12 changes: 12 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,18 @@ indent = { tab-width = 2, unit = " " }
name = "lean"
source = { git = "https://github.com/Julian/tree-sitter-lean", rev = "d98426109258b266e1e92358c5f11716d2e8f638" }


[[language]]
name = "lpf"
comment-token = "#"
scope = "source.lpf"
file-types = ["lpf"]
roots = []

[[grammar]]
name = "lpf"
source = { git = "https://gitlab.com/TheZoq2/tree-sitter-lpf", rev = "db7372e60c722ca7f12ab359e57e6bf7611ab126" }

[[language]]
name = "julia"
scope = "source.julia"
Expand Down
19 changes: 19 additions & 0 deletions runtime/queries/lpf/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
"SYSCONFIG"
"BLOCK"
"LOCATE"
"COMP"
"FREQUENCY"
"PORT"
"IOBUF"
] @keyword

["SITE"] @keyword.storage

["="] @operator

((number) @constant.numeric)

((string) @string)
((line_comment) @comment)

0 comments on commit 4a261fc

Please sign in to comment.