summaryrefslogtreecommitdiffstats
path: root/Auxiliary/vim/indent
Commit message (Collapse)AuthorAgeFilesLines
* Add new flow-control commands for variables and policies scopes managementMarc Chevrier2022-08-221-2/+2
| | | | | | | Add block() and endblock() commands offering the capability to create new scopes for variables and/or policies. Fixes: #20171
* vim: Fix indentation of 'closing parens only lines'Kai Tetzlaff2022-03-221-20/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the indentation of lines which contain only closing parentheses (`)`). Example: Change ``` add_library(mylib mysrc.c ) ``` to: ``` add_library(mylib mysrc.c ) ``` There are edge cases, where the indentation still doesn't really work. Example: This, admittedly weird, piece of code (manually formatted to what I would expect - this is already a personal preference ...): ``` if(4) if((0 OR 1 ) ) # could also be aligned with the `i` in `if` set(foobar ) endif() set(foobar) endif() ``` will be changed to: ``` if(4) if((0 OR 1 ) ) set(foobar ) endif() set(foobar) endif() ``` whereas with the previous vim indentation code the result would have been: ``` if(4) if((0 OR 1 ) ) set(foobar ) endif() set(foobar) endif() ``` which is not great but better than above. I hope that this is acceptable. Note: Apart from the actual indentation fixes, I based the change on a version of indent/cmake.vim I found in the debian/bookworm vim82 package which is newer than the one in the cmake repository (with `Last Change: 2017 Sep 24` comment instead of the cmake repo version with `Last Change: 2017 Aug 30`). This vim82/debian version moved these two lines: ``` let s:keepcpo= &cpo set cpo&vim ``` a bit further down (after an early exit check - which seems to make sense to me). Fixes: #22394
* Auxiliary: Fix typos and spelling in commentsJosef Angstenberger2021-05-071-1/+1
|
* update vim-syntax to latest cmake-commitPatrick Boettcher2017-10-311-7/+13
|
* vim: Remove default setting of expandtabMaarten de Vries2017-09-181-1/+0
| | | | | | | An update from vim-cmake-syntax by commit v3.9.0-rc1~167^2^2 (vim-cmake-syntax 2017-05-02, 2017-05-02) brought in a change to set `expandtab` in CMake language files. This should be a per-project or per-user choice instead, so drop the setting.
* Merge branch 'upstream-vim-cmake-syntax'Patrick Boettcher2017-05-021-0/+1
| | | | | * upstream-vim-cmake-syntax: vim-cmake-syntax 2017-05-02 (15526199)
* Merge branch 'upstream-vim-cmake-syntax' into import-vim-syntaxBrad King2016-08-171-0/+83
* upstream-vim-cmake-syntax: vim-cmake-syntax 2016-08-16 (e782679c)