commit 0ad97e152db0b9d7df8b5e5c7c68853b9e4610c4 Author: Kyo Nagashima Date: Tue Jan 25 17:15:44 2011 +0900 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..856f5c6 --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +TITLE +===== + +vim-css3-syntax + + +DESCRIPTION +=========== + +Add CSS3 syntax support to vim's built-in `syntax/css.vim`. + + +INSTALLATION +============ + +Extract vim-css3-syntax.tar.gz and copy contents to `~/.vim` directory. + + +Git and pathogen +================ + + $ cd ~/.vim/bundle + $ git clone https://hail2u@github.com/hail2u/vim-css3-syntax.git + + +HISTORY +======= + +v0.1 +---- + * Initial release + + +AUTHOR +====== + + * Kyo Namegashima diff --git a/after/syntax/css/css3-new-functions.vim b/after/syntax/css/css3-new-functions.vim new file mode 100644 index 0000000..5f84539 --- /dev/null +++ b/after/syntax/css/css3-new-functions.vim @@ -0,0 +1 @@ +syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsla\?\|calc\|\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend diff --git a/after/syntax/css/css3-new-properties.vim b/after/syntax/css/css3-new-properties.vim new file mode 100644 index 0000000..6b6cbd8 --- /dev/null +++ b/after/syntax/css/css3-new-properties.vim @@ -0,0 +1,15 @@ +syn match cssBoxProp contained "\" +syn match cssBoxProp contained "\" + +syn match cssColorProp contained "\" + +syn keyword cssColorProp contained opacity + +syn match cssTextProp contained "\" +syn match cssTextProp contained "\" + +syn match cssBoxProp contained "\" +syn keyword cssBoxProp contained resize +syn match cssBoxProp contained "\" diff --git a/after/syntax/css/html5-new-elements.vim b/after/syntax/css/html5-new-elements.vim new file mode 100644 index 0000000..cac3cba --- /dev/null +++ b/after/syntax/css/html5-new-elements.vim @@ -0,0 +1,2 @@ +" HTML5 new elements +syn keyword section article aside hgroup header footer nav figure figcaption video audio source embed mark progress meter time ruby rt rp bdi wbr canvas command details summary datalist keygen output diff --git a/after/syntax/css/media-queries.vim b/after/syntax/css/media-queries.vim new file mode 100644 index 0000000..987c31e --- /dev/null +++ b/after/syntax/css/media-queries.vim @@ -0,0 +1,2 @@ +syn region cssMediaType start='(' end=')' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape nextgroup=cssMediaComma,cssMediaAnd,cssMediaBlock skipwhite skipnl +syn match cssMediaComma "and" nextgroup=cssMediaType skipwhite skipnl