mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-26 11:08:40 +03:00
7cfee9c77a
…into a new `common/highlights.scm`. Add highlighting specs for C and C++ Tree-sitter grammars.
44 lines
756 B
Plaintext
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: '// '
|