summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 07:40:37 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 07:40:37 +0000
commit3c752fa378be5c713590bd57ad98ff7bc4f8a83a (patch)
treefbd66b12421249203af0e8d53acfda7598f913a6 /contrib
parentda387eb0b1744511989b8c725e0042e5a283efb5 (diff)
downloadbitbake-3c752fa378be5c713590bd57ad98ff7bc4f8a83a.tar.gz
Vim syntax update: highlight backslashes used as line continuation within strings as 'Special'.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index 56019074c..81723a890 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -23,8 +23,9 @@ syn match bbQuote /['"]/ contained
"syn region bbString matchgroup=bbQuote start=/"/ skip=/\\$/ excludenl end=/"/ keepend contains=bbTodo
"syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ keepend contains=bbTodo
-syn region bbString matchgroup=bbQuote start=/"/ skip=/\\$/ excludenl end=/"/ contained keepend contains=bbTodo
-syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ contained keepend contains=bbTodo
+syn match bbContinue "\\$"
+syn region bbString matchgroup=bbQuote start=/"/ skip=/\\$/ excludenl end=/"/ contained keepend contains=bbTodo,bbContinue
+syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ contained keepend contains=bbTodo,bbContinue
" First attempt:
" syn keyword bbPythonFlag python contained nextgroup=bbFunction
@@ -103,6 +104,7 @@ syn keyword bbStatement include inherit addtask addhandler
syn match bbArrayBrackets "[\[\]]" contained
hi def link bbArrayBrackets Statement
+hi def link bbContinue Special
hi def link bbDef Statement
hi def link bbPythonFlag Type
hi def link bbStatement Statement