diff --git a/after/syntax/css/css-text-4.vim b/after/syntax/css/css-text-4.vim new file mode 100644 index 0000000..e5ea3f5 --- /dev/null +++ b/after/syntax/css/css-text-4.vim @@ -0,0 +1,14 @@ +syn match cssTextProp contained "\" +syn match cssTextProp contained "\" +syn match cssTextProp contained "\" +syn match cssTextProp contained "\" +syn keyword cssTextAttr contained spread punctuation +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\<\(trim\|space\)-\(start\|end\|adjacent\)\>" +syn match cssTextAttr contained "\" +syn match cssTextAttr contained "\" diff --git a/after/syntax/html.vim b/after/syntax/html.vim index cff50a8..a3fe4f7 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -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 diff --git a/test/test.css b/test/test.css index 7f6c835..b9c015b 100644 --- a/test/test.css +++ b/test/test.css @@ -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; diff --git a/test/test.html b/test/test.html index 926436b..7762ed4 100644 --- a/test/test.html +++ b/test/test.html @@ -542,7 +542,7 @@ } +