mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat: add EDS
This commit is contained in:
parent
b6492f41c4
commit
4c1a76ec23
4 changed files with 61 additions and 0 deletions
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