Skip to content

Commit

Permalink
Syntax: Add meta.string scope to matches
Browse files Browse the repository at this point in the history
Closes #375

Co-authored-by: jfcherng <[email protected]>
  • Loading branch information
FichteFoll and jfcherng committed Sep 2, 2022
1 parent 2585467 commit f787e91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ contexts:
- match: "'"
scope: punctuation.definition.string.begin.yaml
push:
- meta_scope: meta.string.yaml
- meta_content_scope: source.regexp.oniguruma
- match: "'(?!')"
scope: punctuation.definition.string.end.yaml
Expand All @@ -642,7 +643,7 @@ contexts:

- match: '{{plain_scalar_but_not_block_key}}'
push:
- meta_scope: source.regexp.oniguruma
- meta_scope: meta.string.yaml source.regexp.oniguruma
- match: '{{_flow_scalar_end_plain_out}}'
pop: true
- include: regexp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ variables:
x1: (?<element> \g<stag> \g<content>* \g<etag> ){0}
#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.variables
# ^^ entity.name.constant.sublime-syntax
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.expect-regexp source.regexp
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.expect-regexp meta.string source.regexp
x2: '(?<stag> < \g<name> \s* > ){0}'
# ^^ entity.name.constant.sublime-syntax
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.expect-regexp
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.expect-regexp meta.string
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.regexp
# ^ punctuation.definition.string.begin.yaml
# ^ punctuation.definition.string.end.yaml
Expand Down

0 comments on commit f787e91

Please sign in to comment.