mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-14 17:38:44 +00:00
Extend the design's keyword list with the keywords from all the approved proposals to date. Update our four syntax highlighters to have matching keyword lists. There are a few other stale things in some of the syntax highlighters; those are not fixed here. Assisted-by: Claude via Antigravity
Carbon Syntax Highlighting for Vim & Neovim
For Carbon developers using Vim, this plugin provides syntax highlighting for
.carbon files found throughout explorer/testdata
Repository and contributing
This code is developed as part of the Carbon Language project. Everything is then automatically mirrored into a dedicated repository.
If you would like to contribute, please follow the normal Carbon contributing guide and submit pull requests to the main repository.
Manual Installation
Vim Users
From the current directory utils/vim, please run the following commands to
install the syntax file.
mkdir -p ~/.vim/syntax && cp syntax/carbon.vim ~/.vim/syntax/
mkdir -p ~/.vim/ftdetect && cp ftdetect/carbon.vim ~/.vim/ftdetect/