diff --git a/grammars/angularjs.cson b/grammars/angularjs.cson index d7ed764..95e1359 100644 --- a/grammars/angularjs.cson +++ b/grammars/angularjs.cson @@ -116,7 +116,7 @@ 'non-bindable|' + 'open|options|' + 'paste|pluralize|' + - 'readonly|repeat|repeat-start|repeat-end|' + + 'readonly|repeat-start|repeat-end|repeat|' + 'selected|show|src|srcset|style|strict-di|submit|switch|switch-when|switch-default|' + 'transclude|' + 'value|' + diff --git a/spec/grammar-spec.coffee b/spec/grammar-spec.coffee index 46736ec..b863052 100644 --- a/spec/grammar-spec.coffee +++ b/spec/grammar-spec.coffee @@ -45,6 +45,15 @@ describe 'directive grammar', -> expect(lines[0][3]).toEqual value: 'NG-REPEAT', scopes: ['text.html.angular', 'meta.tag.block.any.html', 'meta.attribute.html.angular', 'entity.other.attribute-name.html.angular'] + it 'tokenizes ng-repeat-start and ng-repeat-end attribute', -> + lines = grammar.tokenizeLines ''' +
+ + ''' + + expect(lines[0][3]).toEqual value: 'ng-repeat-start', scopes: ['text.html.angular', 'meta.tag.block.any.html', 'meta.attribute.html.angular', 'entity.other.attribute-name.html.angular'] + expect(lines[1][3]).toEqual value: 'ng-repeat-end', scopes: ['text.html.angular', 'meta.tag.block.any.html', 'meta.attribute.html.angular', 'entity.other.attribute-name.html.angular'] + it 'tokenizes ng-controller attribute in body tag', -> lines = grammar.tokenizeLines '''