aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-30 11:08:24 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-31 10:53:51 -0800
commit1463e3ebfb5b5450a79eb56e64ecdf0a07a3e958 (patch)
tree7d30d0201935178ab1c6ade190c64e7e192a4b20
parentc991cbef61db9cf21ff0a5455e60f46acb0513a3 (diff)
downloadpaludis-1463e3ebfb5b5450a79eb56e64ecdf0a07a3e958.tar.gz
paludis-1463e3ebfb5b5450a79eb56e64ecdf0a07a3e958.tar.xz
vim: update syntax highlighting rules for masks
exherbo uses '-' and '.' in mask tokens. Update the regex to match. Unfortunately, vim does not permit the use of character classes in ranges, so switch to the posix class of '[:alnum:]' and augment with the missing '_' to get the equivalent behaviour.
-rw-r--r--vim/syntax/paludis-package-mask-conf.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/syntax/paludis-package-mask-conf.vim b/vim/syntax/paludis-package-mask-conf.vim
index 32bf8d1..bc258d9 100644
--- a/vim/syntax/paludis-package-mask-conf.vim
+++ b/vim/syntax/paludis-package-mask-conf.vim
@@ -24,7 +24,7 @@ syn match PaludisPackageMaskConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
\ nextgroup=PaludisPackageMaskToken skipwhite
syn match PaludisPackageMaskConfSet /^[^ \t#\/]\+\S\@!/
\ nextgroup=PaludisPackageMaskToken skipwhite
-syn match PaludisPackageMaskToken /\w\+/
+syn match PaludisPackageMaskToken /[-.\w]\+/
\ contained skipwhite nextgroup=PaludisPackageMaskToken
hi def link PaludisPackageMaskConfComment Comment