mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 11:14:25 +08:00
initial commit
This commit is contained in:
1
after/syntax/css/css3-new-functions.vim
Normal file
1
after/syntax/css/css3-new-functions.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsla\?\|calc\|\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
15
after/syntax/css/css3-new-properties.vim
Normal file
15
after/syntax/css/css3-new-properties.vim
Normal file
@@ -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\)\>"
|
||||
2
after/syntax/css/html5-new-elements.vim
Normal file
2
after/syntax/css/html5-new-elements.vim
Normal file
@@ -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
|
||||
2
after/syntax/css/media-queries.vim
Normal file
2
after/syntax/css/media-queries.vim
Normal file
@@ -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