mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 03:24:44 +08:00
Follow changes in WD-css-content-3-20160602
See also: https://www.w3.org/TR/2016/WD-css-content-3-20160602/
This commit is contained in:
4
after/syntax/css/css-content-3.vim
Normal file
4
after/syntax/css/css-content-3.vim
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||||
|
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||||
|
syn keyword cssGeneratedContentAttr contained open closed
|
||||||
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(leader\|string\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
syn keyword cssGeneratedContentProp contained running
|
syn keyword cssGeneratedContentProp contained running
|
||||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
|
||||||
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
||||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
syn keyword cssGeneratedContentAttr contained footnote line
|
||||||
syn keyword cssGeneratedContentAttr contained footnote line open closed
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(element\|running\)\s*(" end=")" oneline keepend
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(string\|running\|element\|leader\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
|
||||||
syn match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
syn match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
syn match cssGeneratedContentProp contained "\<move-to\>"
|
|
||||||
syn match cssGeneratedContentProp contained "\<page-policy\>"
|
|
||||||
syn keyword cssGeneratedContentAttr contained inhibit here first last
|
|
||||||
@@ -4,6 +4,7 @@ syn include @htmlCss syntax/css/css-backgrounds-4.vim
|
|||||||
syn include @htmlCss syntax/css/css-break-3.vim
|
syn include @htmlCss syntax/css/css-break-3.vim
|
||||||
syn include @htmlCss syntax/css/css-cascade-3.vim
|
syn include @htmlCss syntax/css/css-cascade-3.vim
|
||||||
syn include @htmlCss syntax/css/css-cascade-4.vim
|
syn include @htmlCss syntax/css/css-cascade-4.vim
|
||||||
|
syn include @htmlCss syntax/css/css-content-3.vim
|
||||||
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
||||||
syn include @htmlCss syntax/css/css-device-adapt-1.vim
|
syn include @htmlCss syntax/css/css-device-adapt-1.vim
|
||||||
syn include @htmlCss syntax/css/css-display-3.vim
|
syn include @htmlCss syntax/css/css-display-3.vim
|
||||||
@@ -39,7 +40,6 @@ syn include @htmlCss syntax/css/css3-background.vim
|
|||||||
syn include @htmlCss syntax/css/css3-box.vim
|
syn include @htmlCss syntax/css/css3-box.vim
|
||||||
syn include @htmlCss syntax/css/css3-colors.vim
|
syn include @htmlCss syntax/css/css3-colors.vim
|
||||||
syn include @htmlCss syntax/css/css3-conditional.vim
|
syn include @htmlCss syntax/css/css3-conditional.vim
|
||||||
syn include @htmlCss syntax/css/css3-content.vim
|
|
||||||
syn include @htmlCss syntax/css/css3-exclusions.vim
|
syn include @htmlCss syntax/css/css3-exclusions.vim
|
||||||
syn include @htmlCss syntax/css/css3-fonts.vim
|
syn include @htmlCss syntax/css/css3-fonts.vim
|
||||||
syn include @htmlCss syntax/css/css3-images.vim
|
syn include @htmlCss syntax/css/css3-images.vim
|
||||||
|
|||||||
@@ -119,10 +119,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
move-to: inhibit;
|
string-set: open;
|
||||||
page-policy: here;
|
bookmark-level: closed;
|
||||||
display: first;
|
bookmark-label: leader('.');
|
||||||
display: last;
|
bookmark-state: string(heading, first);
|
||||||
|
display: target-counter(attr(href url), page);
|
||||||
|
display: target-counters(lack-of-example);
|
||||||
|
display: target-text(attr(href url));
|
||||||
}
|
}
|
||||||
|
|
||||||
@counter-style counter-style {
|
@counter-style counter-style {
|
||||||
@@ -268,17 +271,10 @@
|
|||||||
|
|
||||||
.gcpm::footnote-call,
|
.gcpm::footnote-call,
|
||||||
.gcpm::footnote-marker {
|
.gcpm::footnote-marker {
|
||||||
string-set: string(heading, first);
|
|
||||||
running: running(heading);
|
running: running(heading);
|
||||||
footnote-display: element(header);
|
footnote-display: element(header);
|
||||||
footnote-policy: footnote;
|
footnote-policy: footnote;
|
||||||
bookmark-label: line;
|
display: line;
|
||||||
bookmark-level: leader('.');
|
|
||||||
bookmark-state: target-counter(attr(href url), page);
|
|
||||||
display: target-counters(lack-of-example);
|
|
||||||
display: target-text(attr(href url));
|
|
||||||
display: open;
|
|
||||||
display: closed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.geometry-1 {
|
.geometry-1 {
|
||||||
|
|||||||
@@ -140,10 +140,13 @@
|
|||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.content {
|
.content {
|
||||||
move-to: inhibit;
|
string-set: open;
|
||||||
page-policy: here;
|
bookmark-level: closed;
|
||||||
display: first;
|
bookmark-label: leader('.');
|
||||||
display: last;
|
bookmark-state: string(heading, first);
|
||||||
|
display: target-counter(attr(href url), page);
|
||||||
|
display: target-counters(lack-of-example);
|
||||||
|
display: target-text(attr(href url));
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@@ -300,17 +303,10 @@
|
|||||||
<style>
|
<style>
|
||||||
.gcpm::footnote-call,
|
.gcpm::footnote-call,
|
||||||
.gcpm::footnote-marker {
|
.gcpm::footnote-marker {
|
||||||
string-set: string(heading, first);
|
running: footnote;
|
||||||
running: running(heading);
|
footnote-display: line;
|
||||||
footnote-display: element(header);
|
footnote-policy: element(header);
|
||||||
footnote-policy: footnote;
|
display: running(heading);
|
||||||
bookmark-label: line;
|
|
||||||
bookmark-level: leader('.');
|
|
||||||
bookmark-state: target-counter(attr(href url), page);
|
|
||||||
display: target-counters(lack-of-example);
|
|
||||||
display: target-text(attr(href url));
|
|
||||||
display: open;
|
|
||||||
display: closed;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user