Add css-scoping-1.vim

This commit is contained in:
Kyo Nagashima
2014-04-04 04:31:49 +09:00
parent 0debd6f848
commit abf48e7ca4
4 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
syn region cssInclude start=/@scope\>/ end=/\ze{/ skipwhite skipnl nextgroup=cssMediaBlock
syn keyword cssPseudoClassId contained host shadow content
syn match cssPseudoClassId contained "\<\(scope\|host\)-context\>"
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(host\)(" end=")" oneline
syn match cssSelectorOp2 "/deep/"

View File

@@ -38,6 +38,7 @@ 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
syn include @htmlCss syntax/css/css-masking-1.vim syn include @htmlCss syntax/css/css-masking-1.vim
syn include @htmlCss syntax/css/css-overflow-3.vim syn include @htmlCss syntax/css/css-overflow-3.vim
syn include @htmlCss syntax/css/css-scoping-1.vim
syn include @htmlCss syntax/css/css-shapes-1.vim syn include @htmlCss syntax/css/css-shapes-1.vim
syn include @htmlCss syntax/css/css-text-3.vim syn include @htmlCss syntax/css/css-text-3.vim
syn include @htmlCss syntax/css/css-text-decor-3.vim syn include @htmlCss syntax/css/css-text-decor-3.vim

View File

@@ -344,6 +344,22 @@
ruby-position: ruby-base-container; ruby-position: ruby-base-container;
} }
@scope .scoping {
div {
display: auto;
}
}
.scoping:scope-context div,
.scoping:host,
.scping:host(.foo),
.scoping:host-context,
.scoping::shadow,
.scoping::content,
.scoping /deep/ span {
display: auto;
}
.selectors3:target, .selectors3:target,
.selectors3:enabled, .selectors3:enabled,
.selectors3:disabled, .selectors3:disabled,

View File

@@ -352,6 +352,22 @@
ruby-position: ruby-base-container; ruby-position: ruby-base-container;
} }
@scope .scoping {
div {
display: auto;
}
}
.scoping:scope-context div,
.scoping:host,
.scping:host(.foo),
.scoping:host-context,
.scoping::shadow,
.scoping::content,
.scoping /deep/ span {
display: auto;
}
.selectors3:target, .selectors3:target,
.selectors3:enabled, .selectors3:enabled,
.selectors3:disabled, .selectors3:disabled,