runtime(indent): allow matching negative numbers for gnu indent config file
Commit: https://github.com/vim/vim/commit/ee20fc8062b43eb8e52014978ed8f200158a7efd Author: John M Devin <john.m.de...@gmail.com> Date: Sun Sep 29 11:18:42 2024 +0200 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: #15754 Signed-off-by: John M Devin <john.m.de...@gmail.com> Signed-off-by: Doug Kearns <dougkea...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/syntax/indent.vim b/runtime/syntax/indent.vim index b2a1a0c85..921a0a8ad 100644 --- a/runtime/syntax/indent.vim +++ b/runtime/syntax/indent.vim @@ -2,7 +2,7 @@ " Language: indent(1) configuration file " Maintainer: Doug Kearns <dougkea...@gmail.com> " Previous Maintainer: Nikolai Weibull <n...@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 -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1suqFe-00H0FF-LX%40256bit.org.