Skip to content

Commit 7ec0648

Browse files
author
othree_kao
committed
Support all directive attribute notation
1 parent 79dc9eb commit 7ec0648

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

autoload/syntax/angularjs.html.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ syntax keyword htmlArg contained ng-mouseover ng-mouseup ng-multiple ng-non-bin
1515
syntax keyword htmlArg contained ng-repeat ng-selected ng-show ng-src ng-style ng-submit ng-switch ng-switch-when
1616
syntax keyword htmlArg contained ng-switch-default ng-transclude ng-view
1717

18+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(app\|bind\|bind-html-unsafe\|bind-template\|change\|checked\|class\)/
19+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(class-even\|class-odd\|click\|cloak\|controller\|csp\|dblclick\)/
20+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(disable\|form\|hide\|href\|include\|init\|keydown\|keypress\)/
21+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(key-up\|list\|model\|mousedown\|mouseenter\|mouseleave\|mousemove\)/
22+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(mouseover\|mouseup\|multiple\|non-bindable\|pluralize\|readonly\)/
23+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(repeat\|selected\|show\|src\|style\|submit\|switch\|switch-when\)/
24+
syntax match htmlArg contained /\(ng_\|ng:\|x-ng-\)\(switch-default\|transclude\|view\)/
25+
1826
" http://docs.angularjs.org/api/ng.directive:ngInclude
1927
" http://docs.angularjs.org/api/ng.directive:ngPluralize
2028
" http://docs.angularjs.org/api/ng.directive:ngSwitch

0 commit comments

Comments
 (0)