Add LPF tree sitter (#8536)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
This commit is contained in:
parent
2906660119
commit
9eec9adb8f
3 changed files with 32 additions and 0 deletions
|
@ -89,6 +89,7 @@
|
||||||
| llvm | ✓ | ✓ | ✓ | |
|
| llvm | ✓ | ✓ | ✓ | |
|
||||||
| llvm-mir | ✓ | ✓ | ✓ | |
|
| llvm-mir | ✓ | ✓ | ✓ | |
|
||||||
| llvm-mir-yaml | ✓ | | ✓ | |
|
| llvm-mir-yaml | ✓ | | ✓ | |
|
||||||
|
| lpf | ✓ | | | |
|
||||||
| lua | ✓ | ✓ | ✓ | `lua-language-server` |
|
| lua | ✓ | ✓ | ✓ | `lua-language-server` |
|
||||||
| make | ✓ | | | |
|
| make | ✓ | | | |
|
||||||
| markdoc | ✓ | | | `markdoc-ls` |
|
| markdoc | ✓ | | | `markdoc-ls` |
|
||||||
|
|
|
@ -934,6 +934,18 @@ indent = { tab-width = 2, unit = " " }
|
||||||
name = "lean"
|
name = "lean"
|
||||||
source = { git = "https://github.com/Julian/tree-sitter-lean", rev = "d98426109258b266e1e92358c5f11716d2e8f638" }
|
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]]
|
[[language]]
|
||||||
name = "julia"
|
name = "julia"
|
||||||
scope = "source.julia"
|
scope = "source.julia"
|
||||||
|
|
19
runtime/queries/lpf/highlights.scm
Normal file
19
runtime/queries/lpf/highlights.scm
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
[
|
||||||
|
"SYSCONFIG"
|
||||||
|
"BLOCK"
|
||||||
|
"LOCATE"
|
||||||
|
"COMP"
|
||||||
|
"FREQUENCY"
|
||||||
|
"PORT"
|
||||||
|
"IOBUF"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
["SITE"] @keyword.storage
|
||||||
|
|
||||||
|
["="] @operator
|
||||||
|
|
||||||
|
((number) @constant.numeric)
|
||||||
|
|
||||||
|
((string) @string)
|
||||||
|
((line_comment) @comment)
|
||||||
|
|
Loading…
Reference in a new issue