mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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
|
|
@ -270,6 +270,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [htmldjango](https://github.com/interdependence/tree-sitter-htmldjango) (experimental, maintained by @ObserverOfTime)
|
||||
- [x] [http](https://github.com/rest-nvim/tree-sitter-http) (maintained by @amaanq)
|
||||
- [x] [hurl](https://github.com/pfeiferj/tree-sitter-hurl) (maintained by @pfeiferj)
|
||||
- [x] [hyprlang](https://github.com/luckasRanarison/tree-sitter-hyprlang) (maintained by @luckasRanarison)
|
||||
- [x] [ini](https://github.com/justinmk/tree-sitter-ini) (experimental, maintained by @theHamsta)
|
||||
- [x] [ispc](https://github.com/fab4100/tree-sitter-ispc) (maintained by @fab4100)
|
||||
- [x] [janet_simple](https://github.com/sogaiu/tree-sitter-janet-simple) (maintained by @sogaiu)
|
||||
|
|
|
|||
|
|
@ -290,6 +290,9 @@
|
|||
"hurl": {
|
||||
"revision": "cd1a0ada92cc73dd0f4d7eedc162be4ded758591"
|
||||
},
|
||||
"hyprlang": {
|
||||
"revision": "e60fc858e6327a15c0b26f99ec96945fecd1e4ee"
|
||||
},
|
||||
"ini": {
|
||||
"revision": "bcb84a2d4bcd6f55b911c42deade75c8f90cb0c5"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -891,6 +891,14 @@ list.hurl = {
|
|||
maintainers = { "@pfeiferj" },
|
||||
}
|
||||
|
||||
list.hyprlang = {
|
||||
install_info = {
|
||||
url = "https://github.com/luckasRanarison/tree-sitter-hyprlang",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
maintainers = { "@luckasRanarison" },
|
||||
}
|
||||
|
||||
list.ini = {
|
||||
install_info = {
|
||||
url = "https://github.com/justinmk/tree-sitter-ini",
|
||||
|
|
|
|||
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