feat: add hyprlang parser & queries (#5852)

Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
This commit is contained in:
Luckas 2024-02-09 12:19:46 +03:00 committed by GitHub
parent 01c159826e
commit bc07e58f42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1 @@
(section) @fold

View 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

View file

@ -0,0 +1,6 @@
(section) @indent.begin
(section
"}" @indent.end)
"}" @indent.branch