diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2014-06-08 13:18:33 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2014-06-08 13:18:33 +0200 |
commit | 45273d44d4b1bd9a1be431c1a98f9046ed3a5c79 (patch) | |
tree | 7b8fa566b3da949b422804c3bb9eaf9c51b9b69e /syntax/html | |
parent | e961fa80374369c9e299b333639db0dc43d1f126 (diff) | |
download | vim-polyglot-45273d44d4b1bd9a1be431c1a98f9046ed3a5c79.tar.gz vim-polyglot-45273d44d4b1bd9a1be431c1a98f9046ed3a5c79.zip |
Major update
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\)\>" + |