mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat: add hyprlang parser & queries (#5852)
Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
This commit is contained in:
parent
01c159826e
commit
bc07e58f42
6 changed files with 75 additions and 0 deletions
1
queries/hyprlang/folds.scm
Normal file
1
queries/hyprlang/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(section) @fold
|
||||
56
queries/hyprlang/highlights.scm
Normal file
56
queries/hyprlang/highlights.scm
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
"source"
|
||||
"exec"
|
||||
"exec-once"
|
||||
] @keyword
|
||||
|
||||
(keyword
|
||||
(name) @keyword)
|
||||
|
||||
(assignment
|
||||
(name) @property)
|
||||
|
||||
(section
|
||||
(name) @module)
|
||||
|
||||
(section
|
||||
device: (device_name) @type)
|
||||
|
||||
(variable) @variable
|
||||
|
||||
"$" @punctuation.special
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(mod) @constant
|
||||
|
||||
[
|
||||
"rgb"
|
||||
"rgba"
|
||||
] @function.builtin
|
||||
|
||||
[
|
||||
(number)
|
||||
(legacy_hex)
|
||||
(angle)
|
||||
(hex)
|
||||
] @number
|
||||
|
||||
"deg" @type
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"="
|
||||
"-"
|
||||
"+"
|
||||
] @operator
|
||||
6
queries/hyprlang/indents.scm
Normal file
6
queries/hyprlang/indents.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(section) @indent.begin
|
||||
|
||||
(section
|
||||
"}" @indent.end)
|
||||
|
||||
"}" @indent.branch
|
||||
Loading…
Add table
Add a link
Reference in a new issue