mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +08:00
Follow WD-css-gcpm-3-20140513
See also: http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/ NOTE: Some functions are not highlighted correctly.
This commit is contained in:
7
after/syntax/css/css-gcpm-3.vim
Normal file
7
after/syntax/css/css-gcpm-3.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
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 match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
||||
@@ -1,6 +0,0 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(target-\(counter\|counters\|text\)\|symbols\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssGeneratedContentProp contained bleed marks
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\|target\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<float-offset\>"
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn keyword cssGeneratedContentAttr contained open closed crop cross
|
||||
@@ -11,7 +11,6 @@ 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-fonts.vim
|
||||
syn include @htmlCss syntax/css/css3-gcpm.vim
|
||||
syn include @htmlCss syntax/css/css3-hyperlinks.vim
|
||||
syn include @htmlCss syntax/css/css3-images.vim
|
||||
syn include @htmlCss syntax/css/css3-layout.vim
|
||||
@@ -33,6 +32,7 @@ syn include @htmlCss syntax/css/css3-values.vim
|
||||
syn include @htmlCss syntax/css/css-counter-styles-3.vim
|
||||
syn include @htmlCss syntax/css/css-display-3.vim
|
||||
syn include @htmlCss syntax/css/css-flexbox-1.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-line-grid-1.vim
|
||||
syn include @htmlCss syntax/css/css-lists-3.vim
|
||||
|
||||
@@ -169,15 +169,19 @@
|
||||
display: proportional-width;
|
||||
}
|
||||
|
||||
.gcpm {
|
||||
bleed: target-counter(attr(href, url), page, decimal);
|
||||
marks: target-text(attr(href), content());
|
||||
bookmark-label: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-state: target-text(attr(href), content());
|
||||
bookmark-target: crop;
|
||||
float-offset: cross;
|
||||
string-set: auto;
|
||||
.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;
|
||||
}
|
||||
|
||||
.grid-layout {
|
||||
|
||||
@@ -179,15 +179,20 @@
|
||||
display: proportional-width;
|
||||
}
|
||||
|
||||
.gcpm {
|
||||
bleed: target-counter(attr(href, url), page, decimal);
|
||||
marks: target-text(attr(href), content());
|
||||
bookmark-label: open;
|
||||
bookmark-level: closed;
|
||||
bookmark-state: target-text(attr(href), content());
|
||||
bookmark-target: crop;
|
||||
float-offset: cross;
|
||||
string-set: auto;
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.grid-layout {
|
||||
|
||||
Reference in New Issue
Block a user