Add LPF tree sitter (#8536)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
commit9eec9adb8fb299ea57dc6fa13f0c5d789dcdff73
authorFrans Skarman <frans.skarman@protonmail.com>
dateThu 26 Oct 2023, 23:32 (3 years ago)
parent2906660
book/src/generated/lang-support.md+1
@@ -89,6 +89,7 @@
8989| llvm | ✓ | ✓ | ✓ | |
9090| llvm-mir | ✓ | ✓ | ✓ | |
9191| llvm-mir-yaml | ✓ | | ✓ | |
92+| lpf | ✓ | | | |
9293| lua | ✓ | ✓ | ✓ | `lua-language-server` |
9394| make | ✓ | | | |
9495| markdoc | ✓ | | | `markdoc-ls` |
languages.toml+12
@@ -934,6 +934,18 @@ indent = { tab-width = 2, unit = " " }
934934name = "lean"
935935source = { git = "https://github.com/Julian/tree-sitter-lean", rev = "d98426109258b266e1e92358c5f11716d2e8f638" }
936936
937+
938+[[language]]
939+name = "lpf"
940+comment-token = "#"
941+scope = "source.lpf"
942+file-types = ["lpf"]
943+roots = []
944+
945+[[grammar]]
946+name = "lpf"
947+source = { git = "https://gitlab.com/TheZoq2/tree-sitter-lpf", rev = "db7372e60c722ca7f12ab359e57e6bf7611ab126" }
948+
937949[[language]]
938950name = "julia"
939951scope = "source.julia"
runtime/queries/lpf/highlights.scmnew file+19
@@ -0,0 +1,19 @@
1+[
2+ "SYSCONFIG"
3+ "BLOCK"
4+ "LOCATE"
5+ "COMP"
6+ "FREQUENCY"
7+ "PORT"
8+ "IOBUF"
9+] @keyword
10+
11+["SITE"] @keyword.storage
12+
13+["="] @operator
14+
15+((number) @constant.numeric)
16+
17+((string) @string)
18+((line_comment) @comment)
19+