feat: add NQC

This commit is contained in:
Amaan Qureshi 2023-08-31 02:26:24 -04:00
parent 4a9adef710
commit f0f115e926
8 changed files with 34 additions and 0 deletions

View file

@ -294,6 +294,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [ninja](https://github.com/alemuller/tree-sitter-ninja) (maintained by @alemuller)
- [x] [nix](https://github.com/cstrahan/tree-sitter-nix) (maintained by @leo60228)
- [x] [norg](https://github.com/nvim-neorg/tree-sitter-norg) (maintained by @JoeyGrajciar, @vhyrro)
- [x] [nqc](https://github.com/amaanq/tree-sitter-nqc) (maintained by @amaanq)
- [x] [objc](https://github.com/amaanq/tree-sitter-objc) (maintained by @amaanq)
- [x] [ocaml](https://github.com/tree-sitter/tree-sitter-ocaml) (maintained by @undu)
- [x] [ocaml_interface](https://github.com/tree-sitter/tree-sitter-ocaml) (maintained by @undu)

View file

@ -362,6 +362,9 @@
"norg": {
"revision": "1a305093569632de50f9a316ff843dcda25b4ef5"
},
"nqc": {
"revision": "d8cebf03341d85ddef0ef590517446f9373b6fa8"
},
"objc": {
"revision": "62e61b6f5c0289c376d61a8c91faf6435cde9012"
},

View file

@ -1095,6 +1095,14 @@ list.norg = {
maintainers = { "@JoeyGrajciar", "@vhyrro" },
}
list.nqc = {
install_info = {
url = "https://github.com/amaanq/tree-sitter-nqc",
files = { "src/parser.c" },
},
maintainers = { "@amaanq" },
}
list.objc = {
install_info = {
url = "https://github.com/amaanq/tree-sitter-objc",

1
queries/nqc/folds.scm Normal file
View file

@ -0,0 +1 @@
; inherits: c

View file

@ -0,0 +1,18 @@
; inherits: c
[
"task"
"sub"
] @keyword.function
[
"until"
] @repeat
[
"acquire"
"monitor"
"catch"
"start"
"stop"
] @keyword.coroutine

1
queries/nqc/indents.scm Normal file
View file

@ -0,0 +1 @@
; inherits: c

View file

@ -0,0 +1 @@
; inherits: c

1
queries/nqc/locals.scm Normal file
View file

@ -0,0 +1 @@
; inherits: c