mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 18:30:30 +01:00
Setting "type" to bright red to make comparison obvious: (screenshots taken from VSCode) Before <img width="446" height="150" alt="Screenshot 2026-07-20 135558" src="https://github.com/user-attachments/assets/81249005-99f1-47bb-af4f-ad6e8f2404fb" /> After <img width="429" height="149" alt="Screenshot 2026-07-20 135738" src="https://github.com/user-attachments/assets/acc83086-fe19-4a18-a833-968daed56229" /> I'm not super familiar with textmate/highlightjs, but I think what was happening on line 5 is that the "type" scope is being extended to the `=` after `.y`. Adding `,` as an "end" token fixes this, and I think this is what highlightjs already does. I've also added "unused" as a keyword.
Developer Utilities
This directory collects tools and utilities that may be useful to both Carbon developers and developers writing Carbon code.
Editor Support
Other Editors
Any editor that supports Language server protocol and/or tree-sitter is
supported. The editor just needs to be configured manually.
bazel build //toolchain produces the language server binary.
utils/tree_sitter contains the tree-sitter grammar.