Skip to content

Commit

Permalink
update comment, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
othree committed Sep 8, 2010
1 parent bda0913 commit f32be57
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

HTML5 complete funtion for Vim.

## Feature

- Support all new elements and attribute.
- Support [microdata][microdata].
- Support [RDFa][RDFa].
- Support [WAI-ARIA][aria].

## Install

curl http://github.com/othree/html5-complete.vim/raw/master/autoload/htmlcomplete.vim > ~/.vim/autoload/htmlcomplete.vim
Expand Down Expand Up @@ -30,3 +37,7 @@ Disable microdata attributes support:
Disable role attribute support:

let g:role_attributes_complete = 0

[microdata]:http://dev.w3.org/html5/md/
[RDFa]:http://www.w3.org/TR/rdfa-syntax/
[aria]:http://www.w3.org/TR/wai-aria/
4 changes: 4 additions & 0 deletions autoload/xml/html5.vim
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ endif
" }}}

" WAI_ARIA: {{{
" Ref: http://www.w3.org/TR/wai-aria/
" Version: Draft 15 December 2009
let abstract_role = {}
let role_attributes = {}

Expand Down Expand Up @@ -208,6 +210,8 @@ if g:role_attributes_complete == 1
endif
" }}}

" Ref: http://dev.w3.org/html5/markup/
" Version: Draft 29 August 2010
let phrasing_elements = ['a', 'em', 'strong', 'small', 'mark', 'abbr', 'dfn', 'i', 'b', 'code', 'var', 'samp', 'kbd', 'sup', 'sub', 'q', 'cite', 'span', 'bdo', 'br', 'wbr', 'ins', 'del', 'img', 'embed', 'object', 'iframe', 'map', 'area', 'script', 'noscript', 'ruby', 'video', 'audio', 'input', 'textarea', 'select', 'button', 'label', 'output', 'datalist', 'keygen', 'progress', 'command', 'canvas', 'time', 'meter']

let metadata_elements = ['link', 'style', 'meta', 'script', 'noscript', 'command']
Expand Down

0 comments on commit f32be57

Please sign in to comment.