mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -04:00
Add racket support
This commit is contained in:
parent
3d476b3edb
commit
d642de92f7
5 changed files with 153 additions and 0 deletions
|
|
@ -245,6 +245,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [qmljs](https://github.com/yuja/tree-sitter-qmljs) (maintained by @yuja)
|
||||
- [x] [Tree-sitter query language](https://github.com/nvim-treesitter/tree-sitter-query) (maintained by @steelsojka)
|
||||
- [x] [r](https://github.com/r-lib/tree-sitter-r) (maintained by @jimhester)
|
||||
- [x] [racket](https://github.com/6cdh/tree-sitter-racket) (maintained by @6cdh)
|
||||
- [x] [rasi](https://github.com/Fymyte/tree-sitter-rasi) (maintained by @Fymyte)
|
||||
- [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)
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ local list = setmetatable({}, {
|
|||
filetype_to_parsername[parserconfig.filetype or parsername] = parsername
|
||||
end,
|
||||
})
|
||||
|
||||
list.qmljs = {
|
||||
install_info = {
|
||||
url = "https://github.com/yuja/tree-sitter-qmljs",
|
||||
|
|
@ -52,6 +53,16 @@ list.qmljs = {
|
|||
filetype = "qmljs",
|
||||
maintainers = { "@yuja" },
|
||||
}
|
||||
|
||||
list.racket = {
|
||||
install_info = {
|
||||
url = "https://github.com/6cdh/tree-sitter-racket",
|
||||
branch = "main",
|
||||
files = { "src/parser.c", "src/scanner.cc" },
|
||||
},
|
||||
maintainers = { "@6cdh" },
|
||||
}
|
||||
|
||||
list.scheme = {
|
||||
install_info = {
|
||||
url = "https://github.com/6cdh/tree-sitter-scheme",
|
||||
|
|
|
|||
1
queries/racket/folds.scm
Normal file
1
queries/racket/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(program (list) @fold)
|
||||
138
queries/racket/highlights.scm
Normal file
138
queries/racket/highlights.scm
Normal file
File diff suppressed because one or more lines are too long
2
queries/racket/injections.scm
Normal file
2
queries/racket/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[(comment)
|
||||
(block_comment)] @comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue