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-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-gcpm.vim
|
|
||||||
syn include @htmlCss syntax/css/css3-hyperlinks.vim
|
syn include @htmlCss syntax/css/css3-hyperlinks.vim
|
||||||
syn include @htmlCss syntax/css/css3-images.vim
|
syn include @htmlCss syntax/css/css3-images.vim
|
||||||
syn include @htmlCss syntax/css/css3-layout.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-counter-styles-3.vim
|
||||||
syn include @htmlCss syntax/css/css-display-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-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-grid-1.vim
|
||||||
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
||||||
syn include @htmlCss syntax/css/css-lists-3.vim
|
syn include @htmlCss syntax/css/css-lists-3.vim
|
||||||
|
|||||||
@@ -169,15 +169,19 @@
|
|||||||
display: proportional-width;
|
display: proportional-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gcpm {
|
.gcpm::footnote-call,
|
||||||
bleed: target-counter(attr(href, url), page, decimal);
|
.gcpm::footnote-marker {
|
||||||
marks: target-text(attr(href), content());
|
string-set: string(heading, first);
|
||||||
bookmark-label: open;
|
running: running(heading);
|
||||||
bookmark-level: closed;
|
footnote-display: element(header);
|
||||||
bookmark-state: target-text(attr(href), content());
|
footnote-policy: footnote;
|
||||||
bookmark-target: crop;
|
bookmark-label: line;
|
||||||
float-offset: cross;
|
bookmark-level: leader('.');
|
||||||
string-set: auto;
|
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 {
|
.grid-layout {
|
||||||
|
|||||||
@@ -179,15 +179,20 @@
|
|||||||
display: proportional-width;
|
display: proportional-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gcpm {
|
|
||||||
bleed: target-counter(attr(href, url), page, decimal);
|
.gcpm::footnote-call,
|
||||||
marks: target-text(attr(href), content());
|
.gcpm::footnote-marker {
|
||||||
bookmark-label: open;
|
string-set: string(heading, first);
|
||||||
bookmark-level: closed;
|
running: running(heading);
|
||||||
bookmark-state: target-text(attr(href), content());
|
footnote-display: element(header);
|
||||||
bookmark-target: crop;
|
footnote-policy: footnote;
|
||||||
float-offset: cross;
|
bookmark-label: line;
|
||||||
string-set: auto;
|
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 {
|
.grid-layout {
|
||||||
|
|||||||
Reference in New Issue
Block a user