mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(parsers): add kitty (#8129)
This commit is contained in:
parent
9176343647
commit
db50897909
4 changed files with 215 additions and 0 deletions
1
SUPPORTED_LANGUAGES.md
generated
1
SUPPORTED_LANGUAGES.md
generated
|
|
@ -160,6 +160,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka
|
||||||
[kcl](https://github.com/kcl-lang/tree-sitter-kcl) | unstable | `HF J ` | | @bertbaron
|
[kcl](https://github.com/kcl-lang/tree-sitter-kcl) | unstable | `HF J ` | | @bertbaron
|
||||||
[kconfig](https://github.com/tree-sitter-grammars/tree-sitter-kconfig) | unstable | `HFIJL` | | @amaanq
|
[kconfig](https://github.com/tree-sitter-grammars/tree-sitter-kconfig) | unstable | `HFIJL` | | @amaanq
|
||||||
[kdl](https://github.com/tree-sitter-grammars/tree-sitter-kdl) | unstable | `HFIJL` | | @amaanq
|
[kdl](https://github.com/tree-sitter-grammars/tree-sitter-kdl) | unstable | `HFIJL` | | @amaanq
|
||||||
|
[kitty](https://github.com/OXY2DEV/tree-sitter-kitty) | unstable | `H J ` | | @OXY2DEV
|
||||||
[kotlin](https://github.com/fwcd/tree-sitter-kotlin) | unstable | `HF JL` | | @SalBakraa
|
[kotlin](https://github.com/fwcd/tree-sitter-kotlin) | unstable | `HF JL` | | @SalBakraa
|
||||||
[koto](https://github.com/koto-lang/tree-sitter-koto) | unstable | `HF JL` | | @irh
|
[koto](https://github.com/koto-lang/tree-sitter-koto) | unstable | `HF JL` | | @irh
|
||||||
[kusto](https://github.com/Willem-J-an/tree-sitter-kusto) | unstable | `H J ` | | @Willem-J-an
|
[kusto](https://github.com/Willem-J-an/tree-sitter-kusto) | unstable | `H J ` | | @Willem-J-an
|
||||||
|
|
|
||||||
|
|
@ -1205,6 +1205,14 @@ return {
|
||||||
maintainers = { '@amaanq' },
|
maintainers = { '@amaanq' },
|
||||||
tier = 2,
|
tier = 2,
|
||||||
},
|
},
|
||||||
|
kitty = {
|
||||||
|
install_info = {
|
||||||
|
revision = '49f877cff80ab613808b34bde170ea477ec182fe',
|
||||||
|
url = 'https://github.com/OXY2DEV/tree-sitter-kitty',
|
||||||
|
},
|
||||||
|
maintainers = { '@OXY2DEV' },
|
||||||
|
tier = 2,
|
||||||
|
},
|
||||||
kotlin = {
|
kotlin = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = '57fb4560ba8641865bc0baa6b3f413b236112c4c',
|
revision = '57fb4560ba8641865bc0baa6b3f413b236112c4c',
|
||||||
|
|
|
||||||
175
runtime/queries/kitty/highlights.scm
Normal file
175
runtime/queries/kitty/highlights.scm
Normal file
|
|
@ -0,0 +1,175 @@
|
||||||
|
(line_continuation) @comment
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(comment_content) @spell) @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
(pixel)
|
||||||
|
(percentage)
|
||||||
|
(number)
|
||||||
|
] @number
|
||||||
|
|
||||||
|
[
|
||||||
|
"steps"
|
||||||
|
"cubic-bezier"
|
||||||
|
] @function.call
|
||||||
|
|
||||||
|
(boolean) @boolean
|
||||||
|
|
||||||
|
(color) @constant
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
|
||||||
|
[
|
||||||
|
(ctrl)
|
||||||
|
(alt)
|
||||||
|
(shift)
|
||||||
|
(function)
|
||||||
|
(super)
|
||||||
|
(mouse_button)
|
||||||
|
(up)
|
||||||
|
(left)
|
||||||
|
(right)
|
||||||
|
(middle)
|
||||||
|
(down)
|
||||||
|
] @constant.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
"+"
|
||||||
|
">"
|
||||||
|
":"
|
||||||
|
"-"
|
||||||
|
(separator)
|
||||||
|
"="
|
||||||
|
","
|
||||||
|
"'"
|
||||||
|
":"
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(special) @variable.builtin
|
||||||
|
|
||||||
|
(key) @character
|
||||||
|
|
||||||
|
(path) @string.special.path
|
||||||
|
|
||||||
|
(label) @label
|
||||||
|
|
||||||
|
(constant) @constant
|
||||||
|
|
||||||
|
(direction) @constant
|
||||||
|
|
||||||
|
(pattern) @string.regexp
|
||||||
|
|
||||||
|
(flag) @constant
|
||||||
|
|
||||||
|
((string) @constant
|
||||||
|
(#lua-match? @constant "^-"))
|
||||||
|
|
||||||
|
(generic_action) @function.call
|
||||||
|
|
||||||
|
(action_name) @function.call
|
||||||
|
|
||||||
|
[
|
||||||
|
"pt"
|
||||||
|
"px"
|
||||||
|
"%"
|
||||||
|
"ratio"
|
||||||
|
(signal_name)
|
||||||
|
(clear_target)
|
||||||
|
(ligature_target)
|
||||||
|
(window_location)
|
||||||
|
(stdin_source)
|
||||||
|
(marker_type)
|
||||||
|
(window_state)
|
||||||
|
(logo_position)
|
||||||
|
(mouse_selection_type)
|
||||||
|
(window_layout)
|
||||||
|
(os_window)
|
||||||
|
"ignore-shell"
|
||||||
|
(detach_into)
|
||||||
|
"@selection"
|
||||||
|
(kitty_shell_open_as)
|
||||||
|
(mouse_event)
|
||||||
|
(font_modification_type)
|
||||||
|
(ease_step_position)
|
||||||
|
"c"
|
||||||
|
(filter_element_type)
|
||||||
|
"all"
|
||||||
|
(ligature_disabled)
|
||||||
|
(clipboard_action)
|
||||||
|
(shell_feature)
|
||||||
|
(source_strategy)
|
||||||
|
(notification_time)
|
||||||
|
(paste_action)
|
||||||
|
(pointer)
|
||||||
|
(layout)
|
||||||
|
(launch_type_value)
|
||||||
|
(os_window_class)
|
||||||
|
(layout_type)
|
||||||
|
(time_suffix)
|
||||||
|
(cursor)
|
||||||
|
(spacing_type)
|
||||||
|
(remote_action)
|
||||||
|
(font_feature)
|
||||||
|
] @type
|
||||||
|
|
||||||
|
(kitten
|
||||||
|
target: (string) @type)
|
||||||
|
|
||||||
|
[
|
||||||
|
(color_option_name)
|
||||||
|
"map"
|
||||||
|
"mouse_map"
|
||||||
|
(option_name)
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
(open_url
|
||||||
|
value: (string) @string.special.url)
|
||||||
|
|
||||||
|
(handle_click_actions
|
||||||
|
_ @type)
|
||||||
|
|
||||||
|
(title) @string.special
|
||||||
|
|
||||||
|
(font_change_amount
|
||||||
|
sign: (font_change_sign) @operator)
|
||||||
|
|
||||||
|
(aliased_action
|
||||||
|
name: (string) @function.call)
|
||||||
|
|
||||||
|
(set_colors
|
||||||
|
"set_colors" @function.call)
|
||||||
|
|
||||||
|
(include
|
||||||
|
environment_variable: (string) @variable.builtin)
|
||||||
|
|
||||||
|
(key_focus_on
|
||||||
|
condition: (string) @string.special)
|
||||||
|
|
||||||
|
(mouse_mode
|
||||||
|
[
|
||||||
|
"grabbed"
|
||||||
|
"ungrabbed"
|
||||||
|
] @variable.parameter)
|
||||||
|
|
||||||
|
(font_property
|
||||||
|
name: (string) @variable.parameter)
|
||||||
|
|
||||||
|
(url_excluded_characters
|
||||||
|
value: (string) @character)
|
||||||
|
|
||||||
|
(transparent_color
|
||||||
|
"@" @punctuation.special
|
||||||
|
(alpha) @number)
|
||||||
|
|
||||||
|
(env
|
||||||
|
variable: (string) @variable.builtin)
|
||||||
|
|
||||||
|
(boolean_operator) @keyword.operator
|
||||||
|
|
||||||
|
(notification_action) @function.call
|
||||||
31
runtime/queries/kitty/injections.scm
Normal file
31
runtime/queries/kitty/injections.scm
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
(launch_source_window
|
||||||
|
value: (string) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(launch_next_to
|
||||||
|
value: (string) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(marker_entry
|
||||||
|
(pattern) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(color_match
|
||||||
|
(pattern) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(color_match_tab
|
||||||
|
(pattern) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(include
|
||||||
|
glob: (pattern) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(filter_element
|
||||||
|
(pattern) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
|
(comment
|
||||||
|
(comment_content) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue