mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(readline): add parser tree-sitter-readline (#6058)
This commit is contained in:
parent
b444afa1da
commit
cbf0dfd92f
7 changed files with 92 additions and 0 deletions
|
|
@ -353,6 +353,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [rasi](https://github.com/Fymyte/tree-sitter-rasi) (maintained by @Fymyte)
|
||||
- [x] [rbs](https://github.com/joker1007/tree-sitter-rbs) (maintained by @joker1007)
|
||||
- [x] [re2c](https://github.com/amaanq/tree-sitter-re2c) (maintained by @amaanq)
|
||||
- [x] [readline](https://github.com/ribru17/tree-sitter-readline) (maintained by @ribru17)
|
||||
- [x] [regex](https://github.com/tree-sitter/tree-sitter-regex) (maintained by @theHamsta)
|
||||
- [x] [rego](https://github.com/FallenAngel97/tree-sitter-rego) (maintained by @FallenAngel97)
|
||||
- [x] [pip requirements](https://github.com/ObserverOfTime/tree-sitter-requirements) (maintained by @ObserverOfTime)
|
||||
|
|
|
|||
|
|
@ -539,6 +539,9 @@
|
|||
"re2c": {
|
||||
"revision": "47aa19cf5f7aba2ed30e2b377f7172df76e819a6"
|
||||
},
|
||||
"readline": {
|
||||
"revision": "221edd74cdca24bd5e54b39a0d73b7a1bd11d8cd"
|
||||
},
|
||||
"regex": {
|
||||
"revision": "2354482d7e2e8f8ff33c1ef6c8aa5690410fbc96"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1595,6 +1595,14 @@ list.re2c = {
|
|||
maintainers = { "@amaanq" },
|
||||
}
|
||||
|
||||
list.readline = {
|
||||
install_info = {
|
||||
url = "https://github.com/ribru17/tree-sitter-readline",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
maintainers = { "@ribru17" },
|
||||
}
|
||||
|
||||
list.regex = {
|
||||
install_info = {
|
||||
url = "https://github.com/tree-sitter/tree-sitter-regex",
|
||||
|
|
|
|||
1
queries/readline/folds.scm
Normal file
1
queries/readline/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(conditional_construct) @fold
|
||||
69
queries/readline/highlights.scm
Normal file
69
queries/readline/highlights.scm
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
"set" @keyword
|
||||
|
||||
[
|
||||
"$if"
|
||||
"$else"
|
||||
"$endif"
|
||||
] @keyword.conditional
|
||||
|
||||
"$include" @keyword.import
|
||||
|
||||
[
|
||||
"="
|
||||
"=="
|
||||
"!="
|
||||
">="
|
||||
"<="
|
||||
">"
|
||||
"<"
|
||||
] @operator
|
||||
|
||||
[
|
||||
":"
|
||||
"-"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
(application_name)
|
||||
(keyname)
|
||||
(keyseq)
|
||||
(macro)
|
||||
(string_value)
|
||||
(term_name)
|
||||
] @string
|
||||
|
||||
(file_path) @string.special.path
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(symbolic_character_name) @character.special
|
||||
|
||||
(key_literal) @character
|
||||
|
||||
(function_name) @function
|
||||
|
||||
[
|
||||
(bell_variable)
|
||||
(bool_variable)
|
||||
(edit_mode_variable)
|
||||
(keymap_variable)
|
||||
(number_variable)
|
||||
(string_variable)
|
||||
] @variable.builtin
|
||||
|
||||
[
|
||||
(bell_value)
|
||||
(edit_mode_value)
|
||||
(keymap_value)
|
||||
"version"
|
||||
"term"
|
||||
"mode"
|
||||
] @constant.builtin
|
||||
|
||||
(number_value) @number
|
||||
|
||||
(version_number) @string.special
|
||||
|
||||
(bool_value) @boolean
|
||||
8
queries/readline/indents.scm
Normal file
8
queries/readline/indents.scm
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
(conditional_construct) @indent.begin
|
||||
|
||||
[
|
||||
"$else"
|
||||
"$endif"
|
||||
] @indent.branch
|
||||
|
||||
"$endif" @indent.end
|
||||
2
queries/readline/injections.scm
Normal file
2
queries/readline/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue