mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 19:24:25 +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 match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained footnote line open closed
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(string\|running\|element\|leader\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssGeneratedContentAttr contained footnote line
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(element\|running\)\s*(" end=")" oneline keepend
|
||||
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-cascade-3.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-device-adapt-1.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-colors.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-fonts.vim
|
||||
syn include @htmlCss syntax/css/css3-images.vim
|
||||
|
||||
@@ -119,10 +119,13 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
move-to: inhibit;
|
||||
page-policy: here;
|
||||
display: first;
|
||||
display: last;
|
||||
string-set: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-label: leader('.');
|
||||
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 {
|
||||
@@ -268,17 +271,10 @@
|
||||
|
||||
.gcpm::footnote-call,
|
||||
.gcpm::footnote-marker {
|
||||
string-set: string(heading, first);
|
||||
running: running(heading);
|
||||
footnote-display: element(header);
|
||||
footnote-policy: footnote;
|
||||
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;
|
||||
display: line;
|
||||
}
|
||||
|
||||
.geometry-1 {
|
||||
|
||||
@@ -140,10 +140,13 @@
|
||||
</style>
|
||||
<style>
|
||||
.content {
|
||||
move-to: inhibit;
|
||||
page-policy: here;
|
||||
display: first;
|
||||
display: last;
|
||||
string-set: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-label: leader('.');
|
||||
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>
|
||||
@@ -300,17 +303,10 @@
|
||||
<style>
|
||||
.gcpm::footnote-call,
|
||||
.gcpm::footnote-marker {
|
||||
string-set: string(heading, first);
|
||||
running: running(heading);
|
||||
footnote-display: element(header);
|
||||
footnote-policy: footnote;
|
||||
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;
|
||||
running: footnote;
|
||||
footnote-display: line;
|
||||
footnote-policy: element(header);
|
||||
display: running(heading);
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user