mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
parsers: add tree-sitter-cuda
This commit is contained in:
parent
5634b175c4
commit
8eb37c4409
5 changed files with 23 additions and 1 deletions
|
|
@ -70,7 +70,14 @@ list.cpp = {
|
||||||
files = { "src/parser.c", "src/scanner.cc" },
|
files = { "src/parser.c", "src/scanner.cc" },
|
||||||
generate_requires_npm = true,
|
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"},
|
maintainers = {"@theHamsta"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
1
queries/cuda/folds.scm
Normal file
1
queries/cuda/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: cpp
|
||||||
12
queries/cuda/highlights.scm
Normal file
12
queries/cuda/highlights.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
; inherits: cpp
|
||||||
|
|
||||||
|
[ "<<<" ">>>" ] @punctuation.bracket
|
||||||
|
|
||||||
|
[
|
||||||
|
"__local__"
|
||||||
|
"__shared__"
|
||||||
|
"__global__"
|
||||||
|
"__host__"
|
||||||
|
"__device__"
|
||||||
|
"__forceinline__"
|
||||||
|
] @keyword
|
||||||
1
queries/cuda/indents.scm
Normal file
1
queries/cuda/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: cpp
|
||||||
1
queries/cuda/locals.scm
Normal file
1
queries/cuda/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
; inherits: cpp
|
||||||
Loading…
Add table
Add a link
Reference in a new issue