diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-10-14 17:40:10 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-10-14 17:40:10 +0200 |
commit | bc8a81d3592dab86334f27d1d43c080ebf680d42 (patch) | |
tree | f367857d8c196d36f2d6dec3c2f6c9d703b06b7c /syntax/qml.vim | |
parent | 38282d58387cff48ac203f6912c05e4c8686141b (diff) | |
download | vim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.tar.gz vim-polyglot-bc8a81d3592dab86334f27d1d43c080ebf680d42.zip |
Update
Diffstat (limited to 'syntax/qml.vim')
-rw-r--r-- | syntax/qml.vim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/syntax/qml.vim b/syntax/qml.vim index 73540c7c..aee23df4 100644 --- a/syntax/qml.vim +++ b/syntax/qml.vim @@ -31,7 +31,7 @@ endif syn case ignore -syn cluster qmlExpr contains=qmlStringD,qmlStringS,qmlStringT,SqmlCharacter,qmlNumber,qmlObjectLiteralType,qmlBoolean,qmlType,qmlJsType,qmlNull,qmlGlobal,qmlFunction,qmlArrowFunction +syn cluster qmlExpr contains=qmlStringD,qmlStringS,qmlStringT,SqmlCharacter,qmlNumber,qmlObjectLiteralType,qmlBoolean,qmlType,qmlJsType,qmlNull,qmlGlobal,qmlFunction,qmlArrowFunction,qmlNullishCoalescing syn keyword qmlCommentTodo TODO FIXME XXX TBD contained syn match qmlLineComment "\/\/.*" contains=@Spell,qmlCommentTodo syn match qmlCommentSkip "^[ \t]*\*\($\|[ \t]\+\)" @@ -49,6 +49,7 @@ syn region qmlRegexpString start=+/[^/*]+me=e-1 skip=+\\\\\|\\/+ end=+/[gi syn match qmlObjectLiteralType "[A-Za-z][_A-Za-z0-9]*\s*\({\)\@=" syn region qmlTernaryColon start="?" end=":" contains=@qmlExpr,qmlBraces,qmlParens syn match qmlBindingProperty "\<[A-Za-z][_A-Za-z.0-9]*\s*:" +syn match qmlNullishCoalescing "??" syn keyword qmlConditional if else switch syn keyword qmlRepeat while for do in @@ -1065,7 +1066,7 @@ syntax keyword qmlObjectLiteralType XYSeries syntax keyword qmlObjectLiteralType YAnimator -syntax keyword qmlObjectLiteralType ZoomBlur +syntax keyword qmlObjectLiteralType ZoomBlur " }}} @@ -1126,6 +1127,7 @@ if version >= 508 || !exists("did_qml_syn_inits") HiLink qmlNull Keyword HiLink qmlBoolean Boolean HiLink qmlRegexpString String + HiLink qmlNullishCoalescing Operator HiLink qmlIdentifier Identifier HiLink qmlLabel Label |