mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2026-05-15 21:18:24 +08:00
Compare commits
70 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e84da152ab | |||
| cd85b1ff4f | |||
| 6c0b209f7b | |||
| 5fc09da206 | |||
| 0d21172b97 | |||
| 0c76bef1bf | |||
| 8b615eb6a2 | |||
| fffcf18406 | |||
| f2fba9f8b2 | |||
| 6e8eb4ee6e | |||
| 1888c734d2 | |||
| d990a6731d | |||
| 3b2d6ef0b1 | |||
| 7328bcbe82 | |||
| 3abb10e722 | |||
| 6993f12aef | |||
| 3ec4a4bb4b | |||
| de15898a87 | |||
| 3b20ef3df2 | |||
| dad0fd9dcc | |||
| 09920310c3 | |||
| 0d6d49c712 | |||
| 2fb65e8ac3 | |||
| 91b78456d4 | |||
| 00138fb097 | |||
| 84924b8934 | |||
| 24934b32da | |||
| 661a91f249 | |||
| 50adac88c4 | |||
| 1fc1ff5799 | |||
| adbc12f2ee | |||
| 2a04f2d27c | |||
| b0bc65e6f8 | |||
| a6133ac2ff | |||
| cc35f339d8 | |||
| 4f8d08e82b | |||
| 8d496ec664 | |||
| 349772545f | |||
| 000f04273c | |||
| b7778bc209 | |||
| 089f388a9e | |||
| 02dd66a1d0 | |||
| 857f1af752 | |||
| f99c2ee07e | |||
| e154d38c2d | |||
| e8202fbb7d | |||
| 17624f5993 | |||
| cd2dc6b9f7 | |||
| d066e83f01 | |||
| cb6f429561 | |||
| 5ea57b4b51 | |||
| a56bcb6df4 | |||
| 43e817811d | |||
| d79ca2faae | |||
| 44dd2e6bad | |||
| af20714f72 | |||
| f136721a00 | |||
| ba8002926e | |||
| d8ad25fdb6 | |||
| b73d5028a8 | |||
| 3cd856659d | |||
| 3bc2e593b7 | |||
| 30ef43aed3 | |||
| e06bde335f | |||
| b7a3c55721 | |||
| ab6d5e11e5 | |||
| f933340233 | |||
| 60ff15a81e | |||
| 61bc815f2b | |||
| d858def9c1 |
@@ -1 +0,0 @@
|
||||
github: [hail2u]
|
||||
@@ -0,0 +1,4 @@
|
||||
syn keyword cssFontProp contained anchor-name anchor-scope position-area position-anchor position-try position-try-fallbacks position-try-order position-visibility
|
||||
syn keyword cssFontAttr contained span-left span-right span-x-start span-x-end self-x-start self-x-end span-self-x-start span-self-x-end span-all span-top span-bottom span-y-start span-y-end self-y-start self-y-end span-self-y-start span-self-y-end block-start block-end span-block-start span-block-end self-block-start self-block-end span-self-block-start span-self-block-end inline-start inline-end span-inline-start span-inline-end self-inline-start self-inline-end span-self-inline-start span-self-inline-end span-start span-end self-start self-end span-self-start span-self-end anchor-center most-width most-height most-block-size most-inline-size flip-x flip-y flip-block flip-inline flip-start dialog
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<anchor\(-size\)\=\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@position-try\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained anchored
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained background-position-x background-position-y background-position-inline background-position-block corners corner-shape border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left
|
||||
syn keyword cssFontAttr contained x-start x-end y-start y-end bevel scoop notch
|
||||
syn keyword cssFontProp contained background-repeat-x background-repeat-y background-repeat-inline background-repeat-block background-position-x background-position-y background-position-inline background-position-block background-tbd
|
||||
syn keyword cssFontAttr contained x-start x-end y-start y-end border-area text repeat-block repeat-inline
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained border-top-radius border-right-radius border-bottom-radius border-left-radius border-block-start-radius border-block-end-radius border-inline-start-radius border-inline-end-radius corner corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape corner-start-start-shape corner-start-end-shape corner-end-start-shape corner-end-end-shape corner-top-shape corner-right-shape corner-bottom-shape corner-left-shape corner-block-start-shape corner-block-end-shape corner-inline-start-shape corner-inline-end-shape corner-shape corner-top-left corner-top-right corner-bottom-left corner-bottom-right corner-start-start corner-start-end corner-end-start corner-end-end border-limit border-clip border-top-clip border-right-clip border-bottom-clip border-left-clip border-block-start-clip border-block-end-clip border-inline-start-clip border-inline-end-clip box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position border-shape
|
||||
syn keyword cssFontAttr contained squircle bevel scoop notch sides corners
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<superellipse\s*(" end=")" oneline keepend
|
||||
@@ -1,4 +1,4 @@
|
||||
syn keyword cssFontProp contained components
|
||||
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\|device-cmyk\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-mix\|device-cmyk\|light-dark\|contrast-color\)\>\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
syn keyword cssFontProp contained dynamic-range-limit
|
||||
syn keyword cssFontAttr contained standard constrained-high
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<dynamic-range-limit-mix\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<hdr-color\s*(" end=")" keepend
|
||||
@@ -1 +1,3 @@
|
||||
syn match cssFontDescriptor "@\(when\|else\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn keyword cssFontProp contained container-type container-name container
|
||||
syn keyword cssFontAttr contained inline-size
|
||||
syn match cssFontDescriptor "@\(when\|else\|supports-condition\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
syn keyword cssFontProp contained scroll-behavior
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained reading-flow reading-order
|
||||
syn keyword cssFontAttr contained flex-visual flex-flow grid-rows grid-columns source-order force-hidden
|
||||
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<linear\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
||||
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<env\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
||||
@@ -1,5 +1,5 @@
|
||||
syn keyword cssFontProp contained font-synthesis font-synthesis-weight font-synthesis-style font-synthesis-small-caps font-synthesis-settings font-named-instance font-display ascent-override descent-override line-gap-override font-optical-sizing font-variation-settings font-palette font-variant-emoji font-presentation base-palette override-color
|
||||
syn keyword cssFontAttr contained emoji math fangsong swap fallback light dark contained system-ui contained ui-sans-serif ui-serif ui-monospace ui-rounded contained xxx-large contained historical-forms
|
||||
syn keyword cssFontProp contained font-synthesis font-synthesis-weight font-synthesis-style font-synthesis-small-caps font-synthesis-position font-named-instance font-display ascent-override descent-override line-gap-override font-optical-sizing font-variation-settings font-palette font-variant-emoji font-presentation base-palette override-color
|
||||
syn keyword cssFontAttr contained oblique-only emoji math fangsong swap fallback light dark contained system-ui contained ui-sans-serif ui-serif ui-monospace ui-rounded contained xxx-large contained historical-forms
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@font-feature-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn match cssFontDescriptor "@font-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
syn keyword cssFontProp contained slider-orientation
|
||||
syn keyword cssFontAttr contained base left-to-right right-to-left top-to-bottom bottom-to-top
|
||||
syn keyword cssPseudoClassId contained picker-icon file-selector-button checkmark thumb track fill field-text clear-icon placeholder step-control step-up step-down field-component field-separator color-swatch low-value high-value optimal-value
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<picker(" end=")" contains=cssStringQ,cssStringQQ
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<control-value\s*(" end=")" oneline keepend
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained column-rule-break row-rule-break rule-break column-rule-edge-inset-start column-rule-edge-inset-end column-rule-interior-inset-start column-rule-interior-inset-end row-rule-edge-inset-start row-rule-edge-inset-end row-rule-interior-inset-start row-rule-interior-inset-end rule-overlap row-rule-color rule-color row-rule-style rule-style row-rule-width rule-width row-rule rule
|
||||
syn keyword cssFontAttr contained intersection row-over-column column-over-row
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained flow-tolerance item-track item-direction item-cross item-pack item-flow
|
||||
syn keyword cssFontAttr contained grid-lanes inline-grid-lanes
|
||||
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained image-animation
|
||||
syn keyword cssFontAttr contained stopped
|
||||
syn keyword cssPseudoClassId contained animated-image
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained dominant-baseline alignment-baseline baseline-shift baseline-source text-edge leading-trim inline-sizing initial-letter initial-letter-align initial-letter-wrap
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise ideographic ideographic-ink
|
||||
syn keyword cssFontProp contained dominant-baseline alignment-baseline baseline-shift baseline-source line-fit-edge text-box text-box-edge text-box-trim inline-sizing initial-letter initial-letter-align initial-letter-wrap
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise ideographic ideographic-ink trim-start trim-end
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained result
|
||||
syn match cssFontDescriptor "@function\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -0,0 +1 @@
|
||||
syn keyword cssPseudoClassId contained column
|
||||
@@ -1 +1,2 @@
|
||||
syn keyword cssFontProp contained continue overflow-clip-margin overflow-block overflow-inline scrollbar-gutter block-ellipsis line-clamp max-lines
|
||||
syn keyword cssFontProp contained continue overflow-clip-margin overflow-block overflow-inline scrollbar-gutter block-ellipsis line-clamp max-lines scroll-behavior
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-marker-group
|
||||
syn keyword cssPseudoClassId contained scroll-marker-group scroll-marker target-current
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssFontProp contained marks bleed
|
||||
syn keyword cssFontProp contained marks bleed page-orientation
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained overlay
|
||||
syn keyword cssPseudoClassId contained backdrop
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssPseudoClassId contained prefix postfix target-text spelling-error grammer-error file-selectors-button
|
||||
syn keyword cssPseudoClassId contained prefix suffix target-text spelling-error grammer-error file-selectors-button search-text details-content
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained line-height-step block-step block-step-size block-step-insert block-step-align block-step-round
|
||||
syn keyword cssFontAttr contained margin up down nearest
|
||||
syn keyword cssFontProp contained block-step-size block-step-insert block-step-align block-step-round block-step line-height-step
|
||||
syn keyword cssFontAttr contained up down nearest
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-timeline-name scroll-timeline-axis scroll-timeline view-timeline-name view-timeline-axis view-timeline-inset view-timeline animation-range animation-delay-start animation-delay-end
|
||||
syn keyword cssFontAttr contained entry exit
|
||||
syn keyword cssFontProp contained scroll-timeline-name scroll-timeline-axis scroll-timeline view-timeline-name view-timeline-axis view-timeline-inset view-timeline animation-range animation-delay-start animation-delay-end timeline-scope
|
||||
syn keyword cssFontAttr contained entry exit defer ancestor
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-start-target
|
||||
syn keyword cssPseudoClassId contained snapped snapped-x snapped-y snapped-block snapped-inline
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssSelectorOp "[|]"
|
||||
syn keyword cssPseudoClassId contained scope current past future default valid required optional blank playing paused any-link local-link read-only read-write placeholder-shown in-range out-of-range user-invalid user-valid target-within defined modal fullscreen picture-in-picture seeking buffering stalled muted volume-locked autofill open closed
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(dir\|local-link\|current\|nth\(-last\)\=-col\|has\|where\)(" end=")" oneline
|
||||
syn keyword cssPseudoClassId contained defined any-link scope playing paused seeking buffering stalled muted volume-locked open popover-open modal fullscreen picture-in-picture read-only read-write placeholder-shown autofill default valid in-range out-of-range required optional user-valid user-invalid
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(where\|has\|dir\)(" end=")" oneline
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
syn match cssSelectorOp "[||]"
|
||||
syn match cssSelectorOp "/[a-z:]\+/"
|
||||
syn keyword cssPseudoClassId contained defined local-link interest-source interest-target blank current past future heading
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(state\|headings\|nth-col\|nth-last-col\)(" end=")" oneline
|
||||
@@ -1,3 +1,3 @@
|
||||
syn keyword cssFontProp contained shape-outside shape-image-threshold shape-margin
|
||||
syn keyword cssFontAttr contained margin-box
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\|shape\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained white-space-collapse white-space-trim text-space-trim text-wrap text-autospace text-spacing-trim text-spacing text-group-align wrap-before wrap-after wrap-inside hyphenate-character hyphenate-limit-zone hyphenate-limit-chars hyphenate-limit-lines hyphenate-limit-last line-padding word-boundary-detection word-boundary-expansion
|
||||
syn keyword cssFontAttr contained spread punctuation preserve-breaks preserve-spaces discard-inner discard-before discard-after pretty avoid-line avoid-flex pre-wrap-auto no-limit trim-start trim-end trim-adjacent space-start space-end space-adjacent space-first no-compress ideograph-alpha ideograph-numeric ideographic-space
|
||||
syn keyword cssFontProp contained white-space-collapse white-space-trim text-space-trim text-wrap text-autospace text-spacing-trim text-spacing text-group-align wrap-before wrap-after wrap-inside hyphenate-character hyphenate-limit-zone hyphenate-limit-chars hyphenate-limit-lines hyphenate-limit-last line-padding word-boundary-detection word-space-transform
|
||||
syn keyword cssFontAttr contained math-auto spread punctuation preserve-breaks preserve-spaces discard-inner discard-before discard-after pretty avoid-line avoid-flex pre-wrap-auto no-limit space-all trim-both space-first trim-all no-compress ideograph-alpha ideograph-numeric ideographic-space
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
syn match cssFontDescriptor "@\(starting-style\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,3 +1,2 @@
|
||||
syn keyword cssFontProp contained caret caret-shape
|
||||
syn keyword cssFontAttr contained fade underscore
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<fade\s*(" end=")" oneline keepend
|
||||
syn keyword cssFontProp contained caret-shape caret-animation caret interactivity interest-delay-start interest-delay-end interest-delay accent-color
|
||||
syn keyword cssFontAttr contained underscore inert
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(rex\|cap\|rcap\|rch\|ic\|ric\|lh\|rlh\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(s\|l\|d\)\=v\(h\|w\|i\|b\|min\|max\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(mix\|min\|max\|clamp\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained interpolate-size
|
||||
syn keyword cssFontAttr contained numeric-only allow-keyword
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|first-valid\|toggle\|if\|inherit\|random\(-item\)\=\|sibling-\(count\|index\)\|calc-size\)\s*(" end=")" oneline keepend
|
||||
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained view-transition-class navigation types
|
||||
syn keyword cssPseudoClassId contained active-view-transition
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<active-view-transition-type(" end=")" contains=cssStringQ,cssStringQQ
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
|
||||
syn keyword cssPseudoClassId contained cue cue-region
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline
|
||||
|
||||
+1194
-879
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user