add css3-counter-styles.vim

This module was seperated from CSS3 List and Counters module.
This commit is contained in:
Kyo Nagashima
2013-07-19 05:42:08 +09:00
parent 5a4c51ba9f
commit 3248369d64
4 changed files with 23 additions and 134 deletions

View File

@@ -41,6 +41,7 @@ HISTORY
### v0.9 (in progress)
* Add CSS Fonts Module Level 3 features
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
### v0.8

View File

@@ -0,0 +1,9 @@
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptor
syn keyword cssGeneratedContentProp contained negative prefix suffix range pad fallback
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
syn match cssGeneratedContentProp contained "\<speak-as\>"
syn match cssGeneratedContentAttr contained "\<disclosure-\(open\|closed\)\>"
syn match cssGeneratedContentAttr contained "\<simp-chinese-\(in\)\=formal\>"
syn match cssGeneratedContentAttr contained "\<trad-chinese-\(in\)\=formal\>"
syn match cssGeneratedContentAttr contained "\<ethiopic-numeric\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<symbols\s*(" end=")" oneline keepend

View File

@@ -1,22 +1 @@
syn keyword cssGeneratedContentProp contained type negative prefix suffix range fallback
syn match cssGeneratedContentProp contained "\<\(additive-\)\=glyphs\>"
syn keyword cssGeneratedContentAttr contained box check afar agaw ari asterisks bengali binary blin burmese cambodian dash devanagari diamond dizi footnotes gedeo greek gujarati gumuz gurmukhi hadiyya harari hindi kaffa kannada kebena kembata khmer konso kunama lao lepcha malayalam marathi meen mongolian myanmar octal oriya oromo persian saho sidama silti tamil telugu thai tibetan tigre wolaita yemsa
syn match cssGeneratedContentAttr contained "\<ancient-tamil\>"
syn match cssGeneratedContentAttr contained "\<arabic-indic\>"
syn match cssGeneratedContentAttr contained "\<circled-\(decimal\|korean-\(consonants\|syllables\)\|\(lower\|upper\)-latin\)\>"
syn match cssGeneratedContentAttr contained "\<cjk-\(decimal\|earthly-branch\|heavenly-stem\)\>"
syn match cssGeneratedContentAttr contained "\<dotted-decimal\>"
syn match cssGeneratedContentAttr contained "\<double-circled-decimal\>"
syn match cssGeneratedContentAttr contained "\<eastern-nagari\>"
syn match cssGeneratedContentAttr contained "\<filled-circled-decimal\>"
syn match cssGeneratedContentAttr contained "\<fullwidth-\(decimal\|\(lower\|upper\)-\(alpha\|roman\)\)\>"
syn match cssGeneratedContentAttr contained "\<japanese-\(in\)\=formal\>"
syn match cssGeneratedContentAttr contained "\<korean-\(consonant\|hangul-formal\|hanja-\(in\)\=formal\|syllable\)\>"
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-\(alpha-symbolic\|armenian\|belorussian\|bulgarian\|hexadecimal\|macedonian\|oromo-qubee\|russian\(-full\)\=\|serbo-croatian\|ukrainian\(-full\)\=\)\>"
syn match cssGeneratedContentAttr contained "\<new-base-60\>"
syn match cssGeneratedContentAttr contained "\<parenthesized-\(decimal\|hangul-\(consonants\|syllable\)\|lower-latin\)\>"
syn match cssGeneratedContentAttr contained "\<persian-\(abjad\|alphabetic\)\>"
syn match cssGeneratedContentAttr contained "\<simple-\(lower\|upper\)-roman\>"
syn match cssGeneratedContentAttr contained "\<super-decimal\>"
syn match cssGeneratedContentAttr contained "\<thai-alphabetic\>"
syn keyword cssPseudoClassId contained marker

View File

@@ -78,6 +78,18 @@
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;
}
.exclusions {
wrap-flow: minimum;
wrap-through: maximum;
@@ -209,119 +221,7 @@
}
.lists::marker {
type: box;
negative: check;
prefix: afar;
suffix: agaw;
range: ancient-tamil;
fallback: arabic-indic;
glyphs: ari;
additive-glyphs: asterisks;
display: bengali;
display: binary;
display: blin;
display: burmese;
display: cambodian;
display: circled-decimal;
display: circled-korean-consonants;
display: circled-korean-syllables;
display: circled-lower-latin;
display: circled-upper-latin;
display: cjk-decimal;
display: cjk-earthly-branch;
display: cjk-heavenly-stem;
display: dash;
display: devanagari;
display: diamond;
display: dizi;
display: dotted-decimal;
display: double-circled-decimal;
display: eastern-nagari;
display: filled-circled-decimal;
display: footnotes;
display: fullwidth-decimal;
display: fullwidth-lower-alpha;
display: fullwidth-lower-roman;
display: fullwidth-upper-alpha;
display: fullwidth-upper-roman;
display: gedeo;
display: greek;
display: gujarati;
display: gumuz;
display: gurmukhi;
display: hadiyya;
display: harari;
display: hindi;
display: japanese-formal;
display: japanese-informal;
display: kaffa;
display: kannada;
display: kebena;
display: kembata;
display: khmer;
display: konso;
display: korean-consonant;
display: korean-hangul-formal;
display: korean-hanja-formal;
display: korean-hanja-informal;
display: korean-syllable;
display: kunama;
display: lao;
display: lepcha;
display: lower-alpha-symbolic;
display: lower-armenian;
display: lower-belorussian;
display: lower-bulgarian;
display: lower-hexadecimal;
display: lower-macedonian;
display: lower-oromo-qubee;
display: lower-russian;
display: lower-russian-full;
display: lower-serbo-croatian;
display: lower-ukrainian;
display: lower-ukrainian-full;
display: malayalam;
display: marathi;
display: meen;
display: mongolian;
display: myanmar;
display: new-base-60;
display: octal;
display: oriya;
display: oromo;
display: parenthesized-decimal;
display: parenthesized-hangul-consonants;
display: parenthesized-hangul-syllable;
display: parenthesized-lower-latin;
display: persian;
display: persian-abjad;
display: persian-alphabetic;
display: saho;
display: sidama;
display: silti;
display: simple-lower-roman;
display: simple-upper-roman;
display: super-decimal;
display: tamil;
display: telugu;
display: thai;
display: thai-alphabetic;
display: tibetan;
display: tigre;
display: upper-alpha-symbolic;
display: upper-armenian;
display: upper-belorussian;
display: upper-bulgarian;
display: upper-hexadecimal;
display: upper-macedonian;
display: upper-oromo-qubee;
display: upper-russian;
display: upper-russian-full;
display: upper-serbo-croatian;
display: upper-ukrainian;
display: upper-ukrainian-full;
display: wolaita;
display: yemsa;
display: auto;
}
.marquee {