Highlight @counter-style region

This commit is contained in:
Kyo Nagashima
2014-06-16 23:27:31 +09:00
parent 759fc03897
commit 19cc3af11b
3 changed files with 35 additions and 22 deletions

View File

@@ -1,7 +1,10 @@
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptor
syn keyword cssGeneratedContentProp contained negative prefix suffix range pad fallback
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptors
syn region cssInclude start=/@counter-style\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
syn keyword cssGeneratedContentProp contained system negative prefix suffix range pad fallback
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
syn match cssGeneratedContentProp contained "\<speak-as\>"
syn keyword cssGeneratedContentAttr contained cyclic symbolic numeric additive override
syn match cssGeneratedContentAttr contained "\<cjk-decimal\>"
syn match cssGeneratedContentAttr contained "\<disclosure-\(open\|closed\)\>"
syn match cssGeneratedContentAttr contained "\<simp-chinese-\(in\)\=formal\>"
syn match cssGeneratedContentAttr contained "\<trad-chinese-\(in\)\=formal\>"

View File

@@ -104,16 +104,21 @@
display: last;
}
.counter-styles {
negative: disclosure-open;
prefix: disclosure-closed;
suffix: simp-chinese-informal;
range: simp-chinese-formal;
pad: trad-chinese-informal;
fallback: trad-chinese-formal;
symbols: ethiopic-numeric;
additive-symbols: symbols("*" "\2020" "\2021" "\A7");
speak-as: auto;
@counter-style counter-style {
system: cyclic;
negative: symbolic;
prefix: numeric;
suffix: additive;
range: override;
pad: cjk-decimal;
fallback: disclosure-open;
symbols: disclosure-closed;
additive-symbols: simp-chinese-informal;
speak-as: simp-chinese-formal;
display: trad-chinese-informal;
display: trad-chinese-formal;
display: ethiopic-numeric;
display: symbols("*" "\2020" "\2021" "\A7");
}
.display {

View File

@@ -114,16 +114,21 @@
display: last;
}
.counter-styles {
negative: disclosure-open;
prefix: disclosure-closed;
suffix: simp-chinese-informal;
range: simp-chinese-formal;
pad: trad-chinese-informal;
fallback: trad-chinese-formal;
symbols: ethiopic-numeric;
additive-symbols: symbols("*" "\2020" "\2021" "\A7");
speak-as: auto;
@counter-style counter-style {
system: cyclic;
negative: symbolic;
prefix: numeric;
suffix: additive;
range: override;
pad: cjk-decimal;
fallback: disclosure-open;
symbols: disclosure-closed;
additive-symbols: simp-chinese-informal;
speak-as: simp-chinese-formal;
display: trad-chinese-informal;
display: trad-chinese-formal;
display: ethiopic-numeric;
display: symbols("*" "\2020" "\2021" "\A7");
}
.display {