parsers: add tree-sitter-cuda

This commit is contained in:
Stephan Seitz 2021-06-09 18:47:31 +02:00 committed by Stephan Seitz
parent 5634b175c4
commit 8eb37c4409
5 changed files with 23 additions and 1 deletions

View file

@ -70,7 +70,14 @@ list.cpp = {
files = { "src/parser.c", "src/scanner.cc" },
generate_requires_npm = true,
},
used_by = { "cuda" },
maintainers = {"@theHamsta"},
}
list.cuda = {
install_info = {
url = "https://github.com/theHamsta/tree-sitter-cuda",
files = {"src/parser.c", "src/scanner.cc"},
},
maintainers = {"@theHamsta"},
}

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

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

View file

@ -0,0 +1,12 @@
; inherits: cpp
[ "<<<" ">>>" ] @punctuation.bracket
[
"__local__"
"__shared__"
"__global__"
"__host__"
"__device__"
"__forceinline__"
] @keyword

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

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

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

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