Add css-text-4.vim

See also: http://www.w3.org/TR/2015/WD-css-text-4-20150922/
This commit is contained in:
Kyo Nagashima
2015-09-23 14:31:40 +09:00
parent 0b469af19b
commit 4afac28691
4 changed files with 68 additions and 2 deletions

View 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\)\>"

View File

@@ -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-shapes-1.vim
syn include @htmlCss syntax/css/css-snappoints-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-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-text-decor-3.vim
syn include @htmlCss syntax/css/css-values.vim syn include @htmlCss syntax/css/css-values.vim
syn include @htmlCss syntax/css/css-variables.vim syn include @htmlCss syntax/css/css-variables.vim

View File

@@ -494,7 +494,7 @@
display: reduced; display: reduced;
} }
.text { .text-3 {
hyphens: manual; hyphens: manual;
line-break: loose; line-break: loose;
overflow-wrap: strict; overflow-wrap: strict;
@@ -504,6 +504,31 @@
display: full-width; 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-decor-3 {
text-decoration-color: filled; text-decoration-color: filled;
text-decoration-line: dot; text-decoration-line: dot;

View File

@@ -542,7 +542,7 @@
} }
</style> </style>
<style> <style>
.text { .text-3 {
hyphens: manual; hyphens: manual;
line-break: loose; line-break: loose;
overflow-wrap: strict; overflow-wrap: strict;
@@ -553,6 +553,32 @@
} }
</style> </style>
<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-decor-3 {
text-decoration-color: filled; text-decoration-color: filled;
text-decoration-line: dot; text-decoration-line: dot;