Skip to content

Commit

Permalink
Update Angular2HTML.sublime-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
princemaple authored Apr 12, 2017
1 parent 17eebac commit 881ff29
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Angular2HTML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,25 @@ contexts:
pop: true

tag-ng-reference-attribute:
- match: '\s+((\#)([a-zA-Z]\w*))\b'
- 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*'
captures:
1: meta.attribute.reference.html
2: punctuation.definition.reference.html
3: entity.other.attribute-name.reference.html
4: punctuation.separator.key-value.html
push:
- include: string-double-quoted
- include: string-single-quoted
- match: ''
pop: true

tag-ng-bind-attribute:
- match: '\s+((\[)([a-zA-Z@][\w.-]*)(\])(=)\s*)'
captures:
Expand Down Expand Up @@ -485,6 +498,7 @@ 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 881ff29

Please sign in to comment.