mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
add(rasi): add rasi parser
Signed-off-by: Fymyte <pierguill@gmail.com>
This commit is contained in:
parent
9b262596e0
commit
d13c045223
2 changed files with 91 additions and 0 deletions
|
|
@ -828,6 +828,15 @@ list.make = {
|
|||
maintainers = { "@lewis6991" },
|
||||
}
|
||||
|
||||
list.rasi = {
|
||||
install_info = {
|
||||
url = "https://github.com/Fymyte/tree-sitter-rasi",
|
||||
branch = "main",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
maintainers = { "@Fymyte" },
|
||||
}
|
||||
|
||||
local M = {
|
||||
list = list,
|
||||
}
|
||||
|
|
|
|||
82
queries/rasi/highlights.scm
Normal file
82
queries/rasi/highlights.scm
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
(comment) @comment
|
||||
|
||||
"@media" @keyword
|
||||
"@import" @include
|
||||
"@theme" @include
|
||||
|
||||
(string_value) @string
|
||||
[
|
||||
(integer_value)
|
||||
(float_value)
|
||||
"0"
|
||||
] @number
|
||||
(boolean_value) @boolean
|
||||
|
||||
[
|
||||
(feature_name)
|
||||
(url_image_scale)
|
||||
(direction)
|
||||
(text_style_value)
|
||||
(line_style_value)
|
||||
(position_value)
|
||||
(orientation_value)
|
||||
(cursor_value)
|
||||
"inherit"
|
||||
] @keyword
|
||||
|
||||
|
||||
(url_image "url" @function.builtin)
|
||||
(gradient_image "linear-gradient" @function.builtin)
|
||||
(distance_calc "calc" @function.builtin)
|
||||
(rgb_color ["rgb" "rgba"] @function.builtin)
|
||||
(hsl_color ["hsl" "hsla"] @function.builtin)
|
||||
(hwb_color ["hwb" "hwba"] @function.builtin)
|
||||
(cmyk_color "cmyk" @function.builtin)
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
(distance_op) @operator
|
||||
|
||||
[
|
||||
";"
|
||||
","
|
||||
":"
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
(angle_unit)
|
||||
(integer_distance_unit)
|
||||
(float_distance_unit)
|
||||
] @type
|
||||
(percentage) @number
|
||||
(percentage "%" @type)
|
||||
|
||||
[
|
||||
(global_selector)
|
||||
(id_selector)
|
||||
] @namespace
|
||||
|
||||
(id_selector_view [ "normal" "selected" "alternate" ] @property)
|
||||
(id_selector_state [ "normal" "urgent" "active" ] @tag)
|
||||
|
||||
(hex_color) @number
|
||||
(hex_color "#" @punctuation.special)
|
||||
(named_color (identifier) @string.special)
|
||||
(named_color "/" @operator)
|
||||
(reference_value "@" @punctuation.special (identifier) @variable)
|
||||
(reference_value "var" @function.builtin (identifier) @variable)
|
||||
(list_value (identifier) @variable)
|
||||
(environ_value "$" @punctuation.special (identifier) @variable)
|
||||
(environ_value "env" @function.builtin (identifier) @variable)
|
||||
|
||||
(property_name) @variable
|
||||
|
||||
(ERROR) @error
|
||||
Loading…
Add table
Add a link
Reference in a new issue