mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
add CSS Fonts Module Level 3 features
This commit is contained in:
@@ -38,6 +38,11 @@ These commands highlight vendor prefixed properties and functions instantly with
|
||||
HISTORY
|
||||
-------
|
||||
|
||||
### v0.9 (in progress)
|
||||
|
||||
* Add CSS Fonts Module Level 3 features
|
||||
|
||||
|
||||
### v0.8
|
||||
|
||||
* Add CSS Masking Level 1 features
|
||||
|
||||
17
after/syntax/css/css3-fonts.vim
Normal file
17
after/syntax/css/css3-fonts.vim
Normal file
@@ -0,0 +1,17 @@
|
||||
syn match cssFontProp contained "\<font-feature-settings\>"
|
||||
syn match cssFontProp contained "\<font-kerning\>"
|
||||
syn match cssFontProp contained "\<font-language-override\>"
|
||||
syn match cssFontProp contained "\<font-synthesis\>"
|
||||
syn match cssFontProp contained "\<font-variant-\(alternates\|caps\|east-asian\|ligatures\|numeric\|position\)\>"
|
||||
syn keyword cssFontAttr contained unicase ordinal jis78 jis83 jis90 jis04 simplified traditional
|
||||
syn match cssFontAttr contained "\<\(no-\)\=\(common\|discretionary\|historical\)-ligatures\>"
|
||||
syn match cssFontAttr contained "\<\(no-\)\=contextual\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn match cssFontAttr contained "\<all-small-caps\>"
|
||||
syn match cssFontAttr contained "\<\(all-\)\=petite-caps\>"
|
||||
syn match cssFontAttr contained "\<titling-caps\>"
|
||||
syn match cssFontAttr contained "\<\(lining\|oldstyle\|proportional\|tabular\)-nums\>"
|
||||
syn match cssFontAttr contained "\<\(diagonal\|stacked\)-fractions\>"
|
||||
syn match cssFontAttr contained "\<slashed-zero\>"
|
||||
syn match cssFontAttr contained "\<proportional-width\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
@@ -7,6 +7,7 @@ syn include @htmlCss syntax/css/css3-colors.vim
|
||||
syn include @htmlCss syntax/css/css3-content.vim
|
||||
syn include @htmlCss syntax/css/css3-exclusions.vim
|
||||
syn include @htmlCss syntax/css/css3-flexbox.vim
|
||||
syn include @htmlCss syntax/css/css3-fonts.vim
|
||||
syn include @htmlCss syntax/css/css3-gcpm.vim
|
||||
syn include @htmlCss syntax/css/css3-grid-layout.vim
|
||||
syn include @htmlCss syntax/css/css3-hyperlinks.vim
|
||||
|
||||
@@ -94,6 +94,44 @@
|
||||
flex-wrap: auto;
|
||||
}
|
||||
|
||||
.fonts {
|
||||
font-feature-settings: common-ligatures;
|
||||
font-kerning: no-common-ligatures;
|
||||
font-language-override: discretionary-ligatures;
|
||||
font-synthesis: no-discretionary-ligatures;
|
||||
font-variant-alternates: historical-ligatures;
|
||||
font-variant-caps: no-historical-ligatures;
|
||||
font-variant-east-asian: contextual;
|
||||
font-variant-ligatures: no-contextual;
|
||||
font-variant-numeric: stylistic(feature-value-name);
|
||||
font-variant-position: historical-forms;
|
||||
display: styleset(feature-value-name #);
|
||||
display: character-variant(feature-vlue-name #);
|
||||
display: swash(feature-value-name);
|
||||
display: ornaments(feature-value-name);
|
||||
display: annotation(feature-value-name);
|
||||
display: all-small-caps;
|
||||
display: petite-caps;
|
||||
display: all-petite-caps;
|
||||
display: unicase;
|
||||
display: titling-caps;
|
||||
display: lining-nums;
|
||||
display: oldstyle-nums;
|
||||
display: proportional-nums;
|
||||
display: tabular-nums;
|
||||
display: diagonal-fractions;
|
||||
display: stacked-fractions;
|
||||
display: ordinal;
|
||||
display: slashed-zero;
|
||||
display: jis78;
|
||||
display: jis83;
|
||||
display: jis90;
|
||||
display: jis04;
|
||||
display: simplified;
|
||||
display: traditional;
|
||||
display: proportional-width;
|
||||
}
|
||||
|
||||
.gcpm {
|
||||
bleed: target-counter(attr(href, url), page, decimal);
|
||||
marks: target-text(attr(href), content());
|
||||
|
||||
Reference in New Issue
Block a user