From 881ff297e8fb6bb9b8a92fe0cc079877f0c35726 Mon Sep 17 00:00:00 2001 From: Po Chen Date: Wed, 12 Apr 2017 12:01:11 +1000 Subject: [PATCH] Update Angular2HTML.sublime-syntax --- Angular2HTML.sublime-syntax | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Angular2HTML.sublime-syntax b/Angular2HTML.sublime-syntax index d8f8e37..234f02c 100644 --- a/Angular2HTML.sublime-syntax +++ b/Angular2HTML.sublime-syntax @@ -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: @@ -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