Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version 1.0: Initial upload

  • Loading branch information...
commit c022d947741cbecea933d5a9c8f8b851ba46b7e1 0 parents
@lepture lepture authored committed
Showing with 40 additions and 0 deletions.
  1. +5 −0 README
  2. +35 −0 syntax/css3.vim
5 README
@@ -0,0 +1,5 @@
+This is a mirror of http://www.vim.org/scripts/script.php?script_id=3042
+
+It's really weird that vim doesn't support css3.
+I am just new to vim, and this is the very first script for vim I've written.
+Take your decision.
35 syntax/css3.vim
@@ -0,0 +1,35 @@
+" Vim syntax file
+" Language: CSS 3
+" Maintainer: Shiao <i@shiao.org>
+" Last Change: 2010 Apr 5
+
+" For version 5.x: Clear all syntax items
+" For version 6.x: Quit when a syntax file was already loaded
+if version < 600
+ syntax clear
+elseif exists("b:current_syntax")
+ finish
+endif
+
+if !exists("main_syntax")
+ let main_syntax = 'css'
+endif
+
+if version < 600
+ so <sfile>:p:h/css.vim
+else
+ runtime! syntax/css.vim
+ unlet b:current_syntax
+endif
+
+syn keyword cssColorProp contained opacity
+syn match cssTextProp contained "\<word-wrap\>"
+syn match cssTextProp contained "\<text-overflow\>"
+syn match cssBoxProp contained "\<box-shadow\>"
+syn match cssBoxProp contained "\<border-radius\>"
+syn match cssBoxProp contained "\<border-\(\(top-left\|top-right\|bottom-right\|bottom-left\)-radius\)\>"
+" firefox border-radius TODO
+syn match cssBoxProp contained "-moz-border-radius\>"
+syn match cssBoxProp contained "-moz-border-radius\(-\(bottomleft\|bottomright\|topright\|topleft\)\)\>"
+
+let b:current_syntax = "css3"
Please sign in to comment.
Something went wrong with that request. Please try again.