mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -04:00
feat: add EDS
This commit is contained in:
parent
b6492f41c4
commit
4c1a76ec23
4 changed files with 61 additions and 0 deletions
|
|
@ -116,6 +116,9 @@
|
|||
"ebnf": {
|
||||
"revision": "8e635b0b723c620774dfb8abf382a7f531894b40"
|
||||
},
|
||||
"eds": {
|
||||
"revision": "fde62029d4c715562230070b9af51a9500c2ce10"
|
||||
},
|
||||
"eex": {
|
||||
"revision": "f742f2fe327463335e8671a87c0b9b396905d1d1"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -403,6 +403,14 @@ list.ebnf = {
|
|||
experimental = true,
|
||||
}
|
||||
|
||||
list.eds = {
|
||||
install_info = {
|
||||
url = "https://github.com/uyha/tree-sitter-eds",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
maintainers = { "@uyha" },
|
||||
}
|
||||
|
||||
list.eex = {
|
||||
install_info = {
|
||||
url = "https://github.com/connorlay/tree-sitter-eex",
|
||||
|
|
|
|||
1
queries/eds/folds.scm
Normal file
1
queries/eds/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(section) @fold
|
||||
49
queries/eds/highlights.scm
Normal file
49
queries/eds/highlights.scm
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
"=" @punctuation.delimiter
|
||||
|
||||
[ "[" "]" ] @punctuation.bracket
|
||||
|
||||
((section_name) @variable.builtin
|
||||
(#match? @variable.builtin "\\c^(FileInfo|DeviceInfo|DummyUsage|MandatoryObjects|OptionalObjects)$"))
|
||||
|
||||
((section_name) @variable.builtin
|
||||
(#lua-match? @variable.builtin "^1"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(#match? @_name "\\c^Comments$")) @comment
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @string
|
||||
(#match? @_key "\\c^ParameterName$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @type
|
||||
(#match? @_key "\\c^ObjectType$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @type
|
||||
(#match? @_key "\\c^DataType$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @type.qualifier
|
||||
(#match? @_key "\\c^AccessType$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @attribute
|
||||
(#match? @_key "\\c^PDOMapping$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
|
||||
(section
|
||||
(section_name) @_name
|
||||
(statement (key) @_key) @number
|
||||
(#match? @_key "\\c^(DefaultValue|LowLimit|HighLimit|SubNumber)$")
|
||||
(#not-match? @_name "\\c^Comments$"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue