diff options
Diffstat (limited to 'syntax/html')
| -rw-r--r-- | syntax/html/aria.vim | 37 | 
1 files changed, 31 insertions, 6 deletions
| diff --git a/syntax/html/aria.vim b/syntax/html/aria.vim index 64e972c7..8fb67394 100644 --- a/syntax/html/aria.vim +++ b/syntax/html/aria.vim @@ -1,12 +1,11 @@  " Vim syntax file  " Language:	    WAI-ARIA -" Maintainer:	othree <othree@gmail.com> -" URL:		    http://github.com/othree/html5-syntax.vim -" Last Change:  2010-09-25 +" Maintainer:  	othree <othree@gmail.com> +" URL:		      http://github.com/othree/html5-syntax.vim +" Last Change:  2014-05-02  " License:      MIT -" Changes:      update to Draft 16 September 2010 - -setlocal iskeyword+=- +" Changes:      Add match rules  +"               update to Draft 16 September 2010  " WAI-ARIA States and Properties  " http://www.w3.org/TR/wai-aria/states_and_properties @@ -35,3 +34,29 @@ syn keyword  htmlArg contained aria-dropeffect aria-grabbed  syn keyword  htmlArg contained aria-activedescendant aria-controls aria-describedby aria-flowto  syn keyword  htmlArg contained aria-labelledby aria-owns aria-posinset aria-setsize + +" Use match: https://github.com/othree/html5.vim/issues/39 + +" Global States and Properties +syn match    htmlArg contained "\<aria-\%(\|atomic\|busy\|controls\|describedby\)\>" +syn match    htmlArg contained "\<aria-\%(\|disabled\|dropeffect\|flowto\|grabbed\)\>" +syn match    htmlArg contained "\<aria-\%(\|haspopup\|hidden\|invalid\|label\)\>" +syn match    htmlArg contained "\<aria-\%(\|labelledby\|live\|owns\|relevant\)\>" + +" Widget Attributes +syn match    htmlArg contained "\<aria-\%(\|autocomplete\|checked\|disabled\|expanded\)\>" +syn match    htmlArg contained "\<aria-\%(\|haspopup\|hidden\|invalid\|label\)\>" +syn match    htmlArg contained "\<aria-\%(\|level\|multiline\|multiselectable\|orientation\)\>" +syn match    htmlArg contained "\<aria-\%(\|pressed\|readonly\|required\|selected\)\>" +syn match    htmlArg contained "\<aria-\%(\|sort\|valuemax\|valuemin\|valuenow\|valuetext\)\>" + +" Live Region Attributes +syn match    htmlArg contained "\<aria-\%(\|atomic\|busy\|live\|relevant\)\>" + +" Drag-and-Drop attributes +syn match    htmlArg contained "\<aria-\%(\|dropeffect\|grabbed\)\>" + +" Relationship Attributes +syn match    htmlArg contained "\<aria-\%(\|activedescendant\|controls\|describedby\|flowto\)\>" +syn match    htmlArg contained "\<aria-\%(\|labelledby\|owns\|posinset\|setsize\)\>" + | 
