commit 357c4f76ac37c9522579411cb6b9af0306ff0caf
parent 1ec03c503a28e4b4caee73139dbc0ad3a943b4c7
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 28 Jan 2020 02:42:11 +0100
vim: map syntax should highlight all dashes
Former-commit-id: 9054e2dea7f1696c29710484b7ea8f07d05728d3
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/syntax/map.vim b/vim/syntax/map.vim
@@ -11,7 +11,7 @@ syntax clear
" Define highlighting groups
syntax region mapComment start="^#" end="$"
-syntax match mapDash "\(^ *\)\@<=-"
+syntax match mapDash "\(^ *\)\@<=-\+"
syntax match mapSource "[a-zA-Z0-9_\-./]\+:"
syntax match mapDest "\(: \)\@<=.\+" "have to use lookbehind here, \zs breaks it