summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2022-09-11 11:47:46 +0300
committerDaniel M. Capella <polyzen@archlinux.org>2022-11-01 20:13:01 -0400
commitb39a1733655011627bdc1e754fab213dc059e941 (patch)
tree3af9a086376681b84fdff5059c3e9d3b7e223fb5
parent0c755754b170846b8643c8fd077ad3b4726988f0 (diff)
Redefine shell quote syntax
-rw-r--r--src/vim/syntax/PKGBUILD.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vim/syntax/PKGBUILD.vim b/src/vim/syntax/PKGBUILD.vim
index 7763e9d..0dab3c6 100644
--- a/src/vim/syntax/PKGBUILD.vim
+++ b/src/vim/syntax/PKGBUILD.vim
@@ -261,7 +261,12 @@ syn keyword pbTodo contained COMBAK FIXME TODO XXX
syn match pbComment "^#.*$" contains=@pbCommentGroup
syn match pbComment "[^0-9]#.*$" contains=@pbCommentGroup
-" quotes are handled by sh.vim
+" quotes
+" XXX redefined to fix #6 & #10
+syn clear shSingleQuote
+syn clear shDoubleQuote
+syn region shSingleQuote matchgroup=shQuote start=+'+ end=+'+ contains=@Spell nextgroup=shSpecialStart,shSpecialSQ
+syn region shDoubleQuote matchgroup=shQuote start=+\%(\%(\\\\\)*\\\)\@<!"+ skip=+\\.+ end=+"+ contains=@shDblQuoteList,shStringSpecial,@Spell nextgroup=shSpecialStart
hi def link pbComment Comment
hi def link pbTodo Todo