Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Version 1.0: Initial upload

  • Loading branch information...
commit c022d947741cbecea933d5a9c8f8b851ba46b7e1 0 parents
Hsiaoming Yang authored April 05, 2010 vim-scripts committed February 20, 2011

Showing 2 changed files with 40 additions and 0 deletions. Show diff stats Hide diff stats

  1. 5  README
  2. 35  syntax/css3.vim
5  README
... ...
@@ -0,0 +1,5 @@
  1
+This is a mirror of http://www.vim.org/scripts/script.php?script_id=3042
  2
+
  3
+It's really weird that vim doesn't support css3. 
  4
+I am just new to vim, and this is the very first script for vim I've written.
  5
+Take your decision.
35  syntax/css3.vim
... ...
@@ -0,0 +1,35 @@
  1
+" Vim syntax file
  2
+" Language:	CSS 3
  3
+" Maintainer: Shiao <i@shiao.org>
  4
+" Last Change:	2010 Apr 5
  5
+
  6
+" For version 5.x: Clear all syntax items
  7
+" For version 6.x: Quit when a syntax file was already loaded
  8
+if version < 600
  9
+  syntax clear
  10
+elseif exists("b:current_syntax")
  11
+  finish
  12
+endif
  13
+
  14
+if !exists("main_syntax")
  15
+  let main_syntax = 'css'
  16
+endif
  17
+
  18
+if version < 600
  19
+  so <sfile>:p:h/css.vim
  20
+else
  21
+  runtime! syntax/css.vim
  22
+  unlet b:current_syntax
  23
+endif
  24
+
  25
+syn keyword cssColorProp contained opacity
  26
+syn match cssTextProp contained "\<word-wrap\>"
  27
+syn match cssTextProp contained "\<text-overflow\>"
  28
+syn match cssBoxProp contained "\<box-shadow\>"
  29
+syn match cssBoxProp contained "\<border-radius\>"
  30
+syn match cssBoxProp contained "\<border-\(\(top-left\|top-right\|bottom-right\|bottom-left\)-radius\)\>"
  31
+" firefox border-radius TODO
  32
+syn match cssBoxProp contained "-moz-border-radius\>"
  33
+syn match cssBoxProp contained "-moz-border-radius\(-\(bottomleft\|bottomright\|topright\|topleft\)\)\>"
  34
+
  35
+let b:current_syntax = "css3"

0 notes on commit c022d94

Please sign in to comment.
Something went wrong with that request. Please try again.