Skip to content

C++ grammar for tree-sitter (with Google additions)

License

Notifications You must be signed in to change notification settings

smartpde/tree-sitter-cpp-google

 
 

Repository files navigation

tree-sitter-cpp-google

A fork of the C++ grammar for tree-sitter, with some additional syntax node used in Google projects, e.g. status macros.

The fork is intended to be kept up-to-date with the main C++ grammar. If you notice that it is out of sync, file an issue.

Installation

Install as a lua plugin with your favorite package manager.

use {"smartpde/tree-sitter-cpp-google"}

Before settig up treesitter, call setup() on this plugin:

-- First, initialize this plugin.
require("tree-sitter-cpp-google").setup()

-- Then, set up the treesitter as usual.
require("nvim-treesitter.configs").setup({
  -- Your setup here.
})

Run :TSInstall cpp to [re]install the C++ parser from the new location.

About

C++ grammar for tree-sitter (with Google additions)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.5%
  • C 10.6%
  • Scheme 3.6%
  • C++ 1.5%
  • Lua 0.8%