Add racket support

This commit is contained in:
6cdh 2022-06-04 11:11:34 +08:00 committed by Stephan Seitz
parent 3d476b3edb
commit d642de92f7
5 changed files with 153 additions and 0 deletions

View file

@ -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)

View file

@ -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
View file

@ -0,0 +1 @@
(program (list) @fold)

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,2 @@
[(comment)
(block_comment)] @comment