Add css-fonts-4.vim

See also: https://drafts.csswg.org/css-fonts-4/

This resolves #43.
This commit is contained in:
Kyo Nagashima
2016-11-03 13:56:01 +09:00
parent c553668419
commit 7340b8d436
4 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
syn match cssFontProp contained "\<font-optical-sizing\>"
syn match cssFontProp contained "\<font-variation-settings\>"
syn keyword cssFontAttr contained emoji math fangsong
syn match cssFontAttr contained "\<system-ui\>"

View File

@@ -12,6 +12,7 @@ syn include @htmlCss syntax/css/css-display-3.vim
syn include @htmlCss syntax/css/css-flexbox-1.vim syn include @htmlCss syntax/css/css-flexbox-1.vim
syn include @htmlCss syntax/css/css-font-loading-3.vim syn include @htmlCss syntax/css/css-font-loading-3.vim
syn include @htmlCss syntax/css/css-fonts-3.vim syn include @htmlCss syntax/css/css-fonts-3.vim
syn include @htmlCss syntax/css/css-fonts-4.vim
syn include @htmlCss syntax/css/css-gcpm-3.vim syn include @htmlCss syntax/css/css-gcpm-3.vim
syn include @htmlCss syntax/css/css-grid-1.vim syn include @htmlCss syntax/css/css-grid-1.vim
syn include @htmlCss syntax/css/css-inline-3.vim syn include @htmlCss syntax/css/css-inline-3.vim

View File

@@ -286,6 +286,13 @@
display: proportional-width; display: proportional-width;
} }
.fonts-4 {
font-optical-sizing: emoji;
font-variation-settings: math;
display: fangsong;
display: system-ui;
}
.gcpm-3::footnote-call, .gcpm-3::footnote-call,
.gcpm-3::footnote-marker { .gcpm-3::footnote-marker {
running: footnote; running: footnote;

View File

@@ -318,6 +318,14 @@
} }
</style> </style>
<style> <style>
.fonts-4 {
font-optical-sizing: emoji;
font-variation-settings: math;
display: fangsong;
display: system-ui;
}
</style>
<style>
.gcpm-3::footnote-call, .gcpm-3::footnote-call,
.gcpm-3::footnote-marker { .gcpm-3::footnote-marker {
running: footnote; running: footnote;