summaryrefslogtreecommitdiff
path: root/base/vim/after
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2012-11-07 19:40:06 -0800
committerJesse Morgan <jesse@jesterpm.net>2012-11-08 14:43:38 -0800
commita188bfa6312dc9bc8ce275060f7ec2ad70cb6b2e (patch)
tree8f644133fe2a711255e0fb2f94bdaaa139bc50f9 /base/vim/after
parentab4f19246099f00d13ee83dc003ee32b6bff8798 (diff)
Initial commit.
Diffstat (limited to 'base/vim/after')
-rw-r--r--base/vim/after/syntax/html.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/base/vim/after/syntax/html.vim b/base/vim/after/syntax/html.vim
new file mode 100644
index 0000000..20740b2
--- /dev/null
+++ b/base/vim/after/syntax/html.vim
@@ -0,0 +1,23 @@
+" Vim syntax file
+" Language: HTML (version 5)
+" Maintainer: Rodrigo Machado <rcmachado@gmail.com>
+" URL: http://rm.blog.br/vim/syntax/html.vim
+" Last Change: 2009 Aug 19
+" License: Public domain
+" (but let me know if you liked it :) )
+"
+" Note: This file just adds the new tags from HTML 5
+" and don't replace default html.vim syntax file
+
+" HTML 5 tags
+syn keyword htmlTagName contained article aside audio bb canvas command datagrid
+syn keyword htmlTagName contained datalist details dialog embed figure footer
+syn keyword htmlTagName contained header hgroup keygen mark meter nav output
+syn keyword htmlTagName contained progress time ruby rt rp section time video
+
+" HTML 5 arguments
+syn keyword htmlArg contained autofocus placeholder min max step
+syn keyword htmlArg contained contenteditable contextmenu draggable hidden item
+syn keyword htmlArg contained itemprop list subject spellcheck
+" this doesn't work because default syntax file alredy define a 'data' attribute
+syn match htmlArg "\<\(data-[\-a-zA-Z0-9_]\+\)=" contained