Skip to content

Commit

Permalink
Update Angular2HTML.sublime-syntax
Browse files Browse the repository at this point in the history
Simplify regex and allow template refs without `=`
  • Loading branch information
princemaple authored Jul 9, 2017
1 parent 273223a commit 1071179
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Angular2HTML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ contexts:
pop: true
tag-ng-template-attribute:
- match: '\s+((\*)([a-zA-Z][a-zA-Z0-9-]*)(=)\s*)'
- match: '\s+((\*)([a-zA-Z]\w*)(=\s*)?)'
captures:
1: meta.attribute-with-value.template.html
2: punctuation.definition.template.html
Expand All @@ -454,14 +454,7 @@ contexts:
pop: true

tag-ng-reference-attribute:
- match: '\s+((\#)([a-zA-Z]\w*))\s+'
captures:
1: meta.attribute.reference.html
2: punctuation.definition.reference.html
3: entity.other.attribute-name.reference.html

tag-ng-reference-assignment-attribute:
- match: '\s+((\#)([a-zA-Z]\w*))(=)\s*'
- match: '\s+((\#)([a-zA-Z]\w*)(=\s*)?)'
captures:
1: meta.attribute.reference.html
2: punctuation.definition.reference.html
Expand Down Expand Up @@ -522,7 +515,6 @@ contexts:
- include: tag-event-attribute
- include: tag-ng-template-attribute
- include: tag-ng-reference-attribute
- include: tag-ng-reference-assignment-attribute
- include: tag-ng-bind-attribute
- include: tag-ng-on-attribute
- include: tag-ng-bindon-attribute
Expand Down

0 comments on commit 1071179

Please sign in to comment.