aboutsummaryrefslogtreecommitdiff
path: root/vim/after/syntax
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-09 10:33:49 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-09 10:33:49 +1300
commit0af31dd82d9bfd67cb192c5025b1ed95dbe744f6 (patch)
treec46c38ca99e16b54404ebb99f877b5d07f7c7a76 /vim/after/syntax
parentFix 'while'/'until' highlighting in syntax/sh.vim (diff)
downloaddotfiles-0af31dd82d9bfd67cb192c5025b1ed95dbe744f6.tar.gz
dotfiles-0af31dd82d9bfd67cb192c5025b1ed95dbe744f6.zip
Remove false error flagging for sh char class glob
The syntax highlighter flags this code with an error on the final square bracket: `case $foo in [![:ascii:]]) ;; esac`, but that's all legal. I'm not yet sure how to fix it, so will just turn the error group for now.
Diffstat (limited to 'vim/after/syntax')
-rw-r--r--vim/after/syntax/sh.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/syntax/sh.vim b/vim/after/syntax/sh.vim
index 98b582bd..8025c567 100644
--- a/vim/after/syntax/sh.vim
+++ b/vim/after/syntax/sh.vim
@@ -18,6 +18,11 @@ syntax clear shDerefWordError
" probably not worth keeping the error.
syntax clear shParenError
+" The syntax highlighter flags this code with an error on the final square
+" bracket: `case $foo in [![:ascii:]]) ;; esac`, but that's all legal. I'm not
+" yet sure how to fix it, so will just turn the error group for now.
+syntax clear shTestError
+
" Highlighting corrections specific to POSIX mode
if exists('b:is_posix')