Skip to content

Commit f1d7802

Browse files
Ken Earlvim-scripts
Ken Earl
authored andcommitted
Version 2: a few small fixes. Added support for single quotes.
1 parent 4a00e3d commit f1d7802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/smarty.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ syn region smartyStringDouble matchgroup=Constant start=+"+ end=+"+ contains=s
206206
syn match smartyGlue "\.\|\->"
207207

208208

209-
syn region smartyModifier matchgroup=Statement start=+|+ end=+:\|\>+
210-
syn region smartyParameter matchgroup=Statement start=+:+ end=+\>+
209+
syn region smartyModifier matchgroup=Statement start=+|+ end=+\ze:\|\>+
210+
syn region smartyParameter matchgroup=Statement start=+:+ end=+\s\|}+ contains=smartyVariable, smartyDollarSign, smartyGlue, smartyInBracket, smartyStringDouble
211211
syn region smartyZone matchgroup=Statement start="{" end="}" contains=smartyParameter, smartyProperty, smartyGlue, smartyModifier, smartyDollarSign, smartyInBracket, smartyStringDouble, smartyVariable, smartyString, smartyBlock, smartyTagName, smartyConstant, smartyInFunc
212212
syn region smartyComment matchgroup=Comment start="{\*" end="\*}"
213213

0 commit comments

Comments
 (0)