pulsar/packages/language-c/grammars/modern-tree-sitter-cpp.cson
Andrew Dupont 7cfee9c77a [language-c] Extract common parts of C and C++ highlights.scm
…into a new `common/highlights.scm`.

Add highlighting specs for C and C++ Tree-sitter grammars.
2024-09-22 13:12:06 -07:00

44 lines
756 B
Plaintext

name: 'C++'
scopeName: 'source.cpp'
type: 'modern-tree-sitter'
parser: 'tree-sitter-cpp'
injectionRegex: '^(c|C)(\\+\\+|pp|PP)$'
treeSitter:
parserSource: 'github:tree-sitter/tree-sitter-cpp#a71474021410973b29bfe99440d57bcd750246b1'
grammar: 'tree-sitter-cpp/tree-sitter-cpp.wasm'
languageSegment: 'cpp'
highlightsQuery: [
'common/highlights.scm'
'tree-sitter-cpp/highlights.scm'
]
tagsQuery: 'tree-sitter-cpp/tags.scm'
foldsQuery: 'tree-sitter-cpp/folds.scm'
indentsQuery: 'tree-sitter-cpp/indents.scm'
fileTypes: [
'cc'
'cpp'
'cp'
'cxx'
'c++'
'cu'
'cuh'
'h'
'hh'
'hpp'
'hxx'
'h++'
'inl'
'ino'
'ipp'
'tcc'
'tpp'
]
contentRegex: '\n\\s*(namespace|class|template)\\s+'
comments:
start: '// '