Richard Smith e257051612 No predeclared identifiers, `Core` is a keyword (#4864) 1 年之前
..
queries e257051612 No predeclared identifiers, `Core` is a keyword (#4864) 1 年之前
src 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
testdata 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
.gitignore 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
BUILD 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
README.md 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
grammar.js 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
helix.sh 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前
test_runner.cpp 6f6e46ef57 Migrate tree-sitter support to MODULE.bazel (#4783) 1 年之前

README.md

Tree-sitter grammar for Carbon

Tree-sitter is currently used for syntax highlighting in supported editors.

Development

We use a non-hermetic tree-sitter invocation, so it must be installed locally. To install tree-sitter, run:

npm install -g tree-sitter-cli

Editor Installation

Helix

  1. Install tree-sitter and Nodejs.
  2. Install Helix.
  3. Run ./helix.sh

Emacs

TODO