modern-tree-sitter-cpp.cson 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. name: 'C++'
  2. scopeName: 'source.cpp'
  3. type: 'modern-tree-sitter'
  4. parser: 'tree-sitter-cpp'
  5. injectionRegex: '^(c|C)(\\+\\+|pp|PP)$'
  6. treeSitter:
  7. parserSource: 'github:tree-sitter/tree-sitter-cpp#a71474021410973b29bfe99440d57bcd750246b1'
  8. grammar: 'tree-sitter-cpp/tree-sitter-cpp.wasm'
  9. languageSegment: 'cpp'
  10. highlightsQuery: [
  11. 'common/highlights.scm'
  12. 'tree-sitter-cpp/highlights.scm'
  13. ]
  14. tagsQuery: 'tree-sitter-cpp/tags.scm'
  15. foldsQuery: 'tree-sitter-cpp/folds.scm'
  16. indentsQuery: 'tree-sitter-cpp/indents.scm'
  17. fileTypes: [
  18. 'cc'
  19. 'cpp'
  20. 'cp'
  21. 'cxx'
  22. 'c++'
  23. 'cu'
  24. 'cuh'
  25. 'h'
  26. 'hh'
  27. 'hpp'
  28. 'hxx'
  29. 'h++'
  30. 'inl'
  31. 'ino'
  32. 'ipp'
  33. 'tcc'
  34. 'tpp'
  35. ]
  36. contentRegex: '\n\\s*(namespace|class|template)\\s+'
  37. comments:
  38. start: '// '