Skip to content

Commit 4afac28

Browse files
committed
1 parent 0b469af commit 4afac28

File tree

4 files changed

+68
-2
lines changed

4 files changed

+68
-2
lines changed

after/syntax/css/css-text-4.vim

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
syn match cssTextProp contained "\<text-space-\(collapse\|trim\)\>"
2+
syn match cssTextProp contained "\<text-\(wrap\|spacing\)\>"
3+
syn match cssTextProp contained "\<wrap-\(before\|after\|inside\)\>"
4+
syn match cssTextProp contained "\<hyphenate-\(character\|limit-\(zone\|chars\|lines\|last\)\)\>"
5+
syn keyword cssTextAttr contained spread punctuation
6+
syn match cssTextAttr contained "\<preserve-\(auto\|trim\|breaks\|spaces\)\>"
7+
syn match cssTextAttr contained "\<trim-inner\>"
8+
syn match cssTextAttr contained "\<discard-\(before\|after\)\>"
9+
syn match cssTextAttr contained "\<avoid-\(line\|flex\)\>"
10+
syn match cssTextAttr contained "\<pre-wrap-auto\>"
11+
syn match cssTextAttr contained "\<no-limit\>"
12+
syn match cssTextAttr contained "\<\(trim\|space\)-\(start\|end\|adjacent\)\>"
13+
syn match cssTextAttr contained "\<no-compress\>"
14+
syn match cssTextAttr contained "\<ideograph-\(alpha\|numeric\)\>"

after/syntax/html.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ syn include @htmlCss syntax/css/css-scoping-1.vim
4040
syn include @htmlCss syntax/css/css-shapes-1.vim
4141
syn include @htmlCss syntax/css/css-snappoints-1.vim
4242
syn include @htmlCss syntax/css/css-text-3.vim
43+
syn include @htmlCss syntax/css/css-text-4.vim
4344
syn include @htmlCss syntax/css/css-text-decor-3.vim
4445
syn include @htmlCss syntax/css/css-values.vim
4546
syn include @htmlCss syntax/css/css-variables.vim

test/test.css

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@
494494
display: reduced;
495495
}
496496

497-
.text {
497+
.text-3 {
498498
hyphens: manual;
499499
line-break: loose;
500500
overflow-wrap: strict;
@@ -504,6 +504,31 @@
504504
display: full-width;
505505
}
506506

507+
.text-4 {
508+
text-space-collapse: preserve-auto;
509+
text-space-trim: preserve-trim;
510+
text-wrap: preserve-breaks;
511+
wrap-before: preserve-spaces;
512+
wrap-after: trim-inner;
513+
wrap-inside: discard-before;
514+
hyphenate-character: discard-after;
515+
hyphenate-limit-zone: avoid-line;
516+
hyphenate-limit-chars: avoid-flex;
517+
hyphenate-limit-lines: pre-wrap-auto;
518+
hyphenate-limit-last: no-limit;
519+
text-spacing: spread;
520+
display: trim-start;
521+
display: space-start;
522+
display: trim-end;
523+
display: space-end;
524+
display: trim-adjacent;
525+
display: space-adjacent;
526+
display: no-compress;
527+
display: ideograph-alpha;
528+
display: ideograph-numeric;
529+
display: punctuation;
530+
}
531+
507532
.text-decor-3 {
508533
text-decoration-color: filled;
509534
text-decoration-line: dot;

test/test.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
}
543543
</style>
544544
<style>
545-
.text {
545+
.text-3 {
546546
hyphens: manual;
547547
line-break: loose;
548548
overflow-wrap: strict;
@@ -553,6 +553,32 @@
553553
}
554554
</style>
555555
<style>
556+
.text-4 {
557+
text-space-collapse: preserve-auto;
558+
text-space-trim: preserve-trim;
559+
text-wrap: preserve-breaks;
560+
wrap-before: preserve-spaces;
561+
wrap-after: trim-inner;
562+
wrap-inside: discard-before;
563+
hyphenate-character: discard-after;
564+
hyphenate-limit-zone: avoid-line;
565+
hyphenate-limit-chars: avoid-flex;
566+
hyphenate-limit-lines: pre-wrap-auto;
567+
hyphenate-limit-last: no-limit;
568+
text-spacing: spread;
569+
display: trim-start;
570+
display: space-start;
571+
display: trim-end;
572+
display: space-end;
573+
display: trim-adjacent;
574+
display: space-adjacent;
575+
display: no-compress;
576+
display: ideograph-alpha;
577+
display: ideograph-numeric;
578+
display: punctuation;
579+
}
580+
</style>
581+
<style>
556582
.text-decor-3 {
557583
text-decoration-color: filled;
558584
text-decoration-line: dot;

0 commit comments

Comments
 (0)