mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2026-05-04 16:15:47 +08:00
initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsla\?\|calc\|\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
@@ -0,0 +1,15 @@
|
||||
syn match cssBoxProp contained "\<border-\(color\|image\|radius\)\>"
|
||||
syn match cssBoxProp contained "\<box-shadow\>"
|
||||
|
||||
syn match cssColorProp contained "\<background-\(origin\|clip\|size\)\>"
|
||||
|
||||
syn keyword cssColorProp contained opacity
|
||||
|
||||
syn match cssTextProp contained "\<text-\(shadow\|overflow\)\>"
|
||||
syn match cssTextProp contained "\<word-wrap\>"
|
||||
|
||||
syn match cssBoxProp contained "\<box-sizing\>"
|
||||
syn keyword cssBoxProp contained resize
|
||||
syn match cssBoxProp contained "\<nav-\(up\|right\|down\|left\)"
|
||||
|
||||
syn match cssBoxProp contained "\<overflow-\(x\|y\)\>"
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user