File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
packages/svelte-vscode/syntaxes Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -364,9 +364,12 @@ repository:
364364 # No quotes - just an interpolation expression.
365365 - include : ' #interpolation'
366366 # Units, meaning digit characters and an optional unit string. e.g. `15px`
367- - match : ([0-9._]+[\w]{,4})(?=\s|/?>)
368- name : constant.numeric.decimal.svelte
369- patterns : [ include: '#interpolation' ]
367+ - match : (?:(['"])([0-9._]+[\w%]{,4})(\1))|(?:([0-9._]+[\w%]{,4})(?=\s|/?>))
368+ captures :
369+ 1 : { name: punctuation.definition.string.begin.svelte }
370+ 2 : { name: constant.numeric.decimal.svelte }
371+ 3 : { name: punctuation.definition.string.end.svelte }
372+ 4 : { name: constant.numeric.decimal.svelte }
370373 # Unquoted strings.
371374 - match : ([^\s"'=<>`/]|/(?!>))+
372375 name : string.unquoted.svelte
You can’t perform that action at this time.
0 commit comments