Skip to content

About

CN grammar for tree-sitter

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

CN grammar for tree-sitter. Based on Cerberus (a963cb0).

No promises about it being up-to-date with the upstream grammar.

Queries

Highlights follow the nvim-treesitter capture names.

The grammar is not stand-alone, but intended to be injected into C. Add the following into queries/c/injections.scm, under a path that your editor or other tool recognises:

((comment) @injection.content
  (#match? @injection.content "^/\\*[@$]")
  (#set! injection.language "cn"))

About

CN grammar for tree-sitter

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages