aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-09-29 11:46:34 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-09-29 12:23:52 +0200
commit006323dd70ca417f7ad1e79d9ab660d54028dec1 (patch)
tree1f777c3ca03283c0dc86f3eacb614ef2d2b03f39
parent2c937d723dd6f64705bf4d901254683ba32b2846 (diff)
downloadrneovim-006323dd70ca417f7ad1e79d9ab660d54028dec1.tar.gz
rneovim-006323dd70ca417f7ad1e79d9ab660d54028dec1.tar.bz2
rneovim-006323dd70ca417f7ad1e79d9ab660d54028dec1.zip
vim-patch:ee20fc8: runtime(indent): allow matching negative numbers for gnu indent config file
Some gnu indent options take negative numbers (e.g. --indent-label). Add matching for an optional single '-' before the number. closes: vim/vim#15754 https://github.com/vim/vim/commit/ee20fc8062b43eb8e52014978ed8f200158a7efd Co-authored-by: John M Devin <john.m.devin@gmail.com>
-rw-r--r--runtime/syntax/indent.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/syntax/indent.vim b/runtime/syntax/indent.vim
index b2a1a0c85f..921a0a8ad0 100644
--- a/runtime/syntax/indent.vim
+++ b/runtime/syntax/indent.vim
@@ -2,7 +2,7 @@
" Language: indent(1) configuration file
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
-" Last Change: 2021 Nov 17
+" Last Change: 2024 Sep 29
" indent_is_bsd: If exists, will change somewhat to match BSD implementation
"
" TODO: is the deny-all (a la lilo.vim nice or no?)...
@@ -34,7 +34,7 @@ endif
syn match indentOptions '-\%(bli\|c\%([bl]i\|[dip]\)\=\|di\=\|ip\=\|lc\=\|pp\=i\|sbi\|ts\|-\%(brace-indent\|comment-indentation\|case-brace-indentation\|declaration-comment-column\|continuation-indentation\|case-indentation\|else-endif-column\|line-comments-indentation\|declaration-indentation\|indent-level\|parameter-indentation\|line-length\|comment-line-length\|paren-indentation\|preprocessor-indentation\|struct-brace-indentation\|tab-size\)\)'
\ nextgroup=indentNumber skipwhite skipempty
-syn match indentNumber display contained '\d\+\>'
+syn match indentNumber display contained '-\=\d\+\>'
syn match indentOptions '-T'
\ nextgroup=indentIdent skipwhite skipempty