vim-cmake-syntax
vim-cmake-syntax copied to clipboard
Vim syntax highlighting rules for modern CMake.
The CMake vim runtime files are handled in 1. this repository 2. [CMake](https://gitlab.kitware.com/cmake/cmake/-/tree/master/Auxiliary/vim) 3. [vim](https://github.com/vim/vim) I was told that [this is the upstream of CMake repo](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9034#note_1453840), but 1 and 2...
`Auxiliary/vim/syntax/cmake.vim` incorrectly defines cmakeBracketArguement, cmakeComment and cmakeBracketArgument as ```vim syn region cmakeBracketArgument start="\[\z(=\?\|=[0-9]*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell syn region cmakeComment start="#" end="$" contains=cmakeTodo,@Spell syn region cmakeBracketComment start="\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell ``` `cmakeBracketArgument` doesn't...
https://github.com/vim/vim/pull/13597#discussion_r1410422734
1) ➜ bundle vim --version VIM - Vi IMproved 8.1 (2018 May 18, compiled Nov 28 2022 06:54:26) 包含补丁: 1-875, 878, 884, 948, 1046, 1365-1368, 1382, 1401-1403 2) vim-cmake-syntax is...
Fix #28
Users can use `call EnableEmbeds('foo')` to highlight any syntax in cmake comment.  Still need some tests for corner cases.
[bat](https://github.com/sharkdp/bat) support CmakeCache.txt. How about this vim plugin? TIA!
In some cmake script: ```cmake #[=======================================================================[.rst: ... #]=======================================================================] ``` How about highlight `...` to `rst`? like can highlight code fence: 
I use these commands at the end of my c and c++ syntax files, for coloring delimiters and operators, and it works fine. In cmake syntax file these commands don't...