mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +08:00
Add css-text-4.vim
See also: http://www.w3.org/TR/2015/WD-css-text-4-20150922/
This commit is contained in:
14
after/syntax/css/css-text-4.vim
Normal file
14
after/syntax/css/css-text-4.vim
Normal file
@@ -0,0 +1,14 @@
|
||||
syn match cssTextProp contained "\<text-space-\(collapse\|trim\)\>"
|
||||
syn match cssTextProp contained "\<text-\(wrap\|spacing\)\>"
|
||||
syn match cssTextProp contained "\<wrap-\(before\|after\|inside\)\>"
|
||||
syn match cssTextProp contained "\<hyphenate-\(character\|limit-\(zone\|chars\|lines\|last\)\)\>"
|
||||
syn keyword cssTextAttr contained spread punctuation
|
||||
syn match cssTextAttr contained "\<preserve-\(auto\|trim\|breaks\|spaces\)\>"
|
||||
syn match cssTextAttr contained "\<trim-inner\>"
|
||||
syn match cssTextAttr contained "\<discard-\(before\|after\)\>"
|
||||
syn match cssTextAttr contained "\<avoid-\(line\|flex\)\>"
|
||||
syn match cssTextAttr contained "\<pre-wrap-auto\>"
|
||||
syn match cssTextAttr contained "\<no-limit\>"
|
||||
syn match cssTextAttr contained "\<\(trim\|space\)-\(start\|end\|adjacent\)\>"
|
||||
syn match cssTextAttr contained "\<no-compress\>"
|
||||
syn match cssTextAttr contained "\<ideograph-\(alpha\|numeric\)\>"
|
||||
@@ -40,6 +40,7 @@ syn include @htmlCss syntax/css/css-scoping-1.vim
|
||||
syn include @htmlCss syntax/css/css-shapes-1.vim
|
||||
syn include @htmlCss syntax/css/css-snappoints-1.vim
|
||||
syn include @htmlCss syntax/css/css-text-3.vim
|
||||
syn include @htmlCss syntax/css/css-text-4.vim
|
||||
syn include @htmlCss syntax/css/css-text-decor-3.vim
|
||||
syn include @htmlCss syntax/css/css-values.vim
|
||||
syn include @htmlCss syntax/css/css-variables.vim
|
||||
|
||||
@@ -494,7 +494,7 @@
|
||||
display: reduced;
|
||||
}
|
||||
|
||||
.text {
|
||||
.text-3 {
|
||||
hyphens: manual;
|
||||
line-break: loose;
|
||||
overflow-wrap: strict;
|
||||
@@ -504,6 +504,31 @@
|
||||
display: full-width;
|
||||
}
|
||||
|
||||
.text-4 {
|
||||
text-space-collapse: preserve-auto;
|
||||
text-space-trim: preserve-trim;
|
||||
text-wrap: preserve-breaks;
|
||||
wrap-before: preserve-spaces;
|
||||
wrap-after: trim-inner;
|
||||
wrap-inside: discard-before;
|
||||
hyphenate-character: discard-after;
|
||||
hyphenate-limit-zone: avoid-line;
|
||||
hyphenate-limit-chars: avoid-flex;
|
||||
hyphenate-limit-lines: pre-wrap-auto;
|
||||
hyphenate-limit-last: no-limit;
|
||||
text-spacing: spread;
|
||||
display: trim-start;
|
||||
display: space-start;
|
||||
display: trim-end;
|
||||
display: space-end;
|
||||
display: trim-adjacent;
|
||||
display: space-adjacent;
|
||||
display: no-compress;
|
||||
display: ideograph-alpha;
|
||||
display: ideograph-numeric;
|
||||
display: punctuation;
|
||||
}
|
||||
|
||||
.text-decor-3 {
|
||||
text-decoration-color: filled;
|
||||
text-decoration-line: dot;
|
||||
|
||||
@@ -542,7 +542,7 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.text {
|
||||
.text-3 {
|
||||
hyphens: manual;
|
||||
line-break: loose;
|
||||
overflow-wrap: strict;
|
||||
@@ -553,6 +553,32 @@
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.text-4 {
|
||||
text-space-collapse: preserve-auto;
|
||||
text-space-trim: preserve-trim;
|
||||
text-wrap: preserve-breaks;
|
||||
wrap-before: preserve-spaces;
|
||||
wrap-after: trim-inner;
|
||||
wrap-inside: discard-before;
|
||||
hyphenate-character: discard-after;
|
||||
hyphenate-limit-zone: avoid-line;
|
||||
hyphenate-limit-chars: avoid-flex;
|
||||
hyphenate-limit-lines: pre-wrap-auto;
|
||||
hyphenate-limit-last: no-limit;
|
||||
text-spacing: spread;
|
||||
display: trim-start;
|
||||
display: space-start;
|
||||
display: trim-end;
|
||||
display: space-end;
|
||||
display: trim-adjacent;
|
||||
display: space-adjacent;
|
||||
display: no-compress;
|
||||
display: ideograph-alpha;
|
||||
display: ideograph-numeric;
|
||||
display: punctuation;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
.text-decor-3 {
|
||||
text-decoration-color: filled;
|
||||
text-decoration-line: dot;
|
||||
|
||||
Reference in New Issue
Block a user