Skip to content

Commit 1cf9ba7

Browse files
author
othree_kao
committed
Use keywrod for ng-directive
1 parent b67212f commit 1cf9ba7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

autoload/syntax/angularjs.html.vim

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
" Version: 1.1.13.1
66
" URL: http://angularjs.org/
77

8-
syntax match htmlArg contained "\<ng-\(app\|bind\|bind-html-unsafe\|bind-template\|change\|checked\|class\)\>"
9-
syntax match htmlArg contained "\<ng-\(class-even\|class-odd\|click\|cloak\|controller\|csp\|dblclick\)\>"
10-
syntax match htmlArg contained "\<ng-\(disable\|form\|hide\|href\|include\|init\|keydown\|keypress\)\>"
11-
syntax match htmlArg contained "\<ng-\(key-up\|list\|model\|mousedown\|mouseenter\|mouseleave\|mousemove\)\>"
12-
syntax match htmlArg contained "\<ng-\(mouseover\|mouseup\|multiple\|non-bindable\|pluralize\|readonly\|\)\>"
13-
syntax match htmlArg contained "\<ng-\(repeat\|selected\|show\|src\|style\|submit\|switch\|transclude\)\>"
14-
syntax keyword htmlArg contained expression
8+
setlocal iskeyword+=-
9+
10+
syntax keyword htmlArg contained ng-app ng-bind ng-bind-html-unsafe ng-bind-template ng-change ng-checked ng-class
11+
syntax keyword htmlArg contained ng-class-even ng-class-odd ng-click ng-cloak ng-controller ng-csp ng-dblclick
12+
syntax keyword htmlArg contained ng-disable ng-form ng-hide ng-href ng-include ng-init ng-keydown ng-keypress
13+
syntax keyword htmlArg contained ng-key-up ng-list ng-model ng-mousedown ng-mouseenter ng-mouseleave ng-mousemove
14+
syntax keyword htmlArg contained ng-mouseover ng-mouseup ng-multiple ng-non-bindable ng-pluralize ng-readonly
15+
syntax keyword htmlArg contained ng-repeat ng-selected ng-show ng-src ng-style ng-submit ng-switch ng-transclude
16+
syntax keyword htmlArg contained expression
1517

1618

1719

0 commit comments

Comments
 (0)