Skip to content

Commit

Permalink
Remove meta.interpolation from inline event and style values
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Oct 20, 2024
1 parent 825f250 commit abc8388
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
8 changes: 4 additions & 4 deletions Syntaxes/HTML/HTML (Twig).sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ contexts:
tag-event-attribute-value-double-quoted-body:
- meta_include_prototype: false
- meta_scope: meta.string.html
- meta_content_scope: meta.interpolation.html source.js.embedded.html
- meta_content_scope: source.js.embedded.html
- match: \"
scope: string.quoted.double.html punctuation.definition.string.end.html
pop: 1
Expand All @@ -143,7 +143,7 @@ contexts:
tag-event-attribute-value-single-quoted-body:
- meta_include_prototype: false
- meta_scope: meta.string.html
- meta_content_scope: meta.interpolation.html source.js.embedded.html
- meta_content_scope: source.js.embedded.html
- match: \'
scope: string.quoted.single.html punctuation.definition.string.end.html
pop: 1
Expand All @@ -162,7 +162,7 @@ contexts:
tag-style-attribute-value-double-quoted-body:
- meta_include_prototype: false
- meta_scope: meta.string.html
- meta_content_scope: meta.interpolation.html source.css.embedded.html
- meta_content_scope: source.css.embedded.html
- match: \"
scope: string.quoted.double.html punctuation.definition.string.end.html
pop: 1
Expand All @@ -171,7 +171,7 @@ contexts:
tag-style-attribute-value-single-quoted-body:
- meta_include_prototype: false
- meta_scope: meta.string.html
- meta_content_scope: meta.interpolation.html source.css.embedded.html
- meta_content_scope: source.css.embedded.html
- match: \'
scope: string.quoted.single.html punctuation.definition.string.end.html
pop: 1
Expand Down
58 changes: 29 additions & 29 deletions Syntaxes/HTML/syntax_test_scopes.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2341,29 +2341,29 @@
{# ^^^^^^^ entity.other.attribute-name.event.html #}
{# ^ punctuation.separator.key-value.html #}
{# ^ meta.string.html string.quoted.double.html punctuation.definition.string.begin.html #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html variable.other.readwrite.js #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^^^^^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig meta.interpolation.twig #}
{# ^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig punctuation.definition.string.end.twig #}
{# ^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.group.js #}
{# ^^ meta.string.html source.js.embedded.html variable.other.readwrite.js #}
{# ^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^^^^^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig meta.interpolation.twig #}
{# ^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig punctuation.definition.string.end.twig #}
{# ^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^^ meta.string.html source.js.embedded.html meta.group.js #}
{# ^ meta.string.html string.quoted.double.html punctuation.definition.string.end.html #}

onclick='on{{ 'function-#{name}' }}()'
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute-with-value.event.html #}
{# ^^^^^^^ entity.other.attribute-name.event.html #}
{# ^ punctuation.separator.key-value.html #}
{# ^ meta.string.html string.quoted.single.html punctuation.definition.string.begin.html #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html variable.other.readwrite.js #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^^^^^^^^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.single.twig #}
{# ^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^^ meta.string.html meta.interpolation.html source.js.embedded.html meta.group.js #}
{# ^^ meta.string.html source.js.embedded.html variable.other.readwrite.js #}
{# ^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^^^^^^^^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.single.twig #}
{# ^ meta.string.html source.js.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html source.js.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^^ meta.string.html source.js.embedded.html meta.group.js #}
{# ^ meta.string.html string.quoted.single.html punctuation.definition.string.end.html #}
>
{#^^^ meta.tag #}
Expand All @@ -2377,29 +2377,29 @@
style='{{ 'color: \'#{value}\'' }}'
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute-with-value.style.html #}
{# ^ meta.string.html string.quoted.single.html punctuation.definition.string.begin.html #}
{# ^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^^^^^^^^^^^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.single.twig #}
{# ^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^^^^^^^^^^^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.single.twig #}
{# ^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^ meta.string.html string.quoted.single.html punctuation.definition.string.end.html #}
{# ^ - meta.attribute-with-value #}

style="{{ "color: \"#{value}\"" }}"
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.attribute-with-value.style.html #}
{# ^ meta.string.html string.quoted.double.html punctuation.definition.string.begin.html #}
{# ^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.begin.twig #}
{# ^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^^^^^^^^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^ constant.character.escape.twig #}
{# ^^^^^^^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig meta.interpolation.twig #}
{# ^^^^^^^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig meta.interpolation.twig #}
{# ^^ punctuation.section.interpolation.begin.twig #}
{# ^^^^^ variable.other.twig #}
{# ^ punctuation.section.interpolation.end.twig #}
{# ^^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded meta.string.twig string.quoted.double.twig #}
{# ^^ constant.character.escape.twig #}
{# ^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html meta.interpolation.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^ meta.string.html source.css.embedded.html meta.embedded.expression.twig source.twig.embedded #}
{# ^^ meta.string.html source.css.embedded.html meta.embedded.expression.twig punctuation.section.embedded.end.twig #}
{# ^ meta.string.html string.quoted.double.html punctuation.definition.string.end.html #}
{# ^ - meta.attribute-with-value #}

Expand All @@ -2409,7 +2409,7 @@
{# ^ punctuation.separator.key-value.html #}
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.html #}
{# ^ string.quoted.double.html punctuation.definition.string.begin.html #}
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.interpolation.html source.css.embedded.html #}
{# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.css.embedded.html #}
{# ^^^^^^^^^^^^^^^^^^^^^ meta.property-name.css support.type.property-name.css #}
{# ^^^^^^^^^^^^^^^ meta.embedded.expression.twig #}
{# ^^ punctuation.section.embedded.begin.twig #}
Expand Down

0 comments on commit abc8388

Please sign in to comment.