mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 09:07:19 +03:00
fix cpp indent filter
This commit is contained in:
parent
6ca530b5cc
commit
dc268758dd
@ -19,7 +19,7 @@ hook global WinSetOption filetype=cpp %~
|
|||||||
addhl -group cpp-highlight regex "(\`|(?<=\n))\h*#\h*[^\n]*" 0:macro
|
addhl -group cpp-highlight regex "(\`|(?<=\n))\h*#\h*[^\n]*" 0:macro
|
||||||
addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:comment
|
addhl -group cpp-highlight regex "(//[^\n]*\n)|(/\*.*?(\*/|\'))" 0:comment
|
||||||
addfilter group cpp-filters
|
addfilter group cpp-filters
|
||||||
addfilter -group cpp-filters regex ^(\h+)[^\n]*[^([{]\h* \n \n$1
|
addfilter -group cpp-filters regex ^(\h+)([^\n]*[^([{]\h*|$) \n \n$1
|
||||||
addfilter -group cpp-filters regex ^(\h*)[^\n]*[([{]\h* \n '\n$1 '
|
addfilter -group cpp-filters regex ^(\h*)[^\n]*[([{]\h* \n '\n$1 '
|
||||||
addfilter -group cpp-filters cleanup_whitespaces
|
addfilter -group cpp-filters cleanup_whitespaces
|
||||||
hook window InsertEnd .* %{ exec xs\h+(?=\n)<ret>d }
|
hook window InsertEnd .* %{ exec xs\h+(?=\n)<ret>d }
|
||||||
|
Loading…
Reference in New Issue
Block a user