Skip to content

Commit

Permalink
Add 'source' scopes to regexp includes
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed May 20, 2017
1 parent 5c0e7fc commit c86c2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ contexts:
- match: 's/'
scope: punctuation.definition.substitute-what.tmPreferences
push:
- meta_content_scope: source.regexp.oniguruma
- match: '/'
scope: punctuation.definition.substitute-with.tmPreferences
set:
Expand All @@ -311,7 +312,7 @@ contexts:
- include: scope:source.regexp.oniguruma#extended-patterns

regex-pattern:
- meta_content_scope: meta.regex.tmPreferences
- meta_content_scope: meta.regex.tmPreferences source.regexp.oniguruma
- include: scope:source.regexp.oniguruma

shell-variables:
Expand Down
1 change: 1 addition & 0 deletions Package/TextMate Preferences/syntax_test_tmPreferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
<!-- ^^^^^^^^^^^^^^^^^^^^ meta.inside-plist.plist meta.inside-dict.plist meta.inside-dict-key.plist entity.name.constant.setting.regex-transform.tmPreferences -->
<string><![CDATA[
s/(\[[^\]]*\])|\b_\b\s*|\(.*|(\s{2,})/$1(?2 )/g; (?# this is a regex transformation
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.regex.transformation.tmPreferences source.regexp.oniguruma -->
<!-- ^^ meta.inside-plist.plist meta.inside-dict.plist meta.inside-value.string.plist meta.regex.transformation.tmPreferences punctuation.definition.substitute-what.tmPreferences -->
<!-- ^ punctuation.definition.substitute-with.tmPreferences -->
<!-- ^^ keyword.other.backref-and-recursion.conditional.regexp-replacement -->
Expand Down

0 comments on commit c86c2df

Please sign in to comment.