diff options
author | Frans Skarman | 2023-10-26 23:32:49 +0000 |
---|---|---|
committer | GitHub | 2023-10-26 23:32:49 +0000 |
commit | 9eec9adb8fb299ea57dc6fa13f0c5d789dcdff73 (patch) | |
tree | 64fc3562d8513ba98148334fb039bb5ab5886563 | |
parent | 290666011971c79e36b5172eea66b315dc52e2c9 (diff) |
Add LPF tree sitter (#8536)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
-rw-r--r-- | book/src/generated/lang-support.md | 1 | ||||
-rw-r--r-- | languages.toml | 12 | ||||
-rw-r--r-- | runtime/queries/lpf/highlights.scm | 19 |
3 files changed, 32 insertions, 0 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 58bc3d05..48d805bc 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -89,6 +89,7 @@ | llvm | ✓ | ✓ | ✓ | | | llvm-mir | ✓ | ✓ | ✓ | | | llvm-mir-yaml | ✓ | | ✓ | | +| lpf | ✓ | | | | | lua | ✓ | ✓ | ✓ | `lua-language-server` | | make | ✓ | | | | | markdoc | ✓ | | | `markdoc-ls` | diff --git a/languages.toml b/languages.toml index a6c9d556..d8207b3e 100644 --- a/languages.toml +++ b/languages.toml @@ -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" diff --git a/runtime/queries/lpf/highlights.scm b/runtime/queries/lpf/highlights.scm new file mode 100644 index 00000000..836aef84 --- /dev/null +++ b/runtime/queries/lpf/highlights.scm @@ -0,0 +1,19 @@ +[ + "SYSCONFIG" + "BLOCK" + "LOCATE" + "COMP" + "FREQUENCY" + "PORT" + "IOBUF" +] @keyword + +["SITE"] @keyword.storage + +["="] @operator + +((number) @constant.numeric) + +((string) @string) +((line_comment) @comment) + |