Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Consolidate vendor-prefixed property name matching into one statement #21

Merged
merged 1 commit into from

2 participants

@mannieschumpert

It seemed to me the section that matched vendor-prefixed properties didn't need to be so explicit. This regex statement matches all the things matched by the replaced code, and would cover any new vendor prefix properties.

@nathos nathos merged commit fffa963 into nathos:master
@nathos
Owner

@mannieschumpert Awesome! thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 26 deletions.
  1. +2 −26 Syntaxes/Sass.tmLanguage
View
28 Syntaxes/Sass.tmLanguage
@@ -162,34 +162,10 @@
<key>name</key>
<string>support.constant.font-name.sass</string>
</dict>
- <!-- Vendor-prefixed properties as reported by http://peter.sh/experiments/vendor-prefixed-css-property-overview/ -->
+ <!-- Vendor prefixing -->
<dict>
<key>match</key>
- <string>\-epub-(writing-mode|word-break|text-transform|text-orientation|text-emphasis-style|text-emphasis-color|text-emphasis|text-combine|hyphens|caption-side)\b</string>
- <key>name</key>
- <string>support.type.property-name.sass</string>
- </dict>
- <dict>
- <key>match</key>
- <string>\-(xv-voice-volume|xv-voice-stress|xv-voice-rate|xv-voice-pitch-range|xv-voice-pitch|xv-voice-duration|xv-voice-balance|xv-phonemes|xv-interpret-as|wap-marquee-style|wap-marquee-speed|wap-marquee-loop|wap-marquee-dir|wap-input-required|wap-input-format|wap-accesskey|o-transition-timing-function|o-transition-property|o-transition-duration|o-transition-delay|o-transition|o-transform-origin|o-transform|o-table-baseline|o-tab-size|o-object-position|o-object-fit|o-mini-fold|o-link-source|o-link|o-focus-opacity|o-device-pixel-ratio|o-border-image|apple-dashboard-region)\b</string>
- <key>name</key>
- <string>support.type.property-name.sass</string>
- </dict>
- <dict>
- <key>match</key>
- <string>\-ms-(zoom|writing-mode|wrap-through|wrap-margin|wrap-flow|word-wrap|word-break|user-select|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin-z|transform-origin-y|transform-origin-x|transform-origin|transform|touch-action|text-underline-position|text-size-adjust|text-overflow|text-kashida-space|text-justify|text-autospace|text-align-last|scrollbar-track-color|scrollbar-shadow-color|scrollbar-highlight-color|scrollbar-face-color|scrollbar-darkshadow-color|scrollbar-base-color|scrollbar-arrow-color|scroll-snap-y|scroll-snap-x|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-rails|scroll-chaining|scroll-boundary-top|scroll-boundary-right|scroll-boundary-left|scroll-boundary-bottom|scroll-boundary|perspective-origin-y|perspective-origin-x|perspective-origin|perspective|overflow-y|overflow-x|overflow-style|line-break|layout-grid-type|layout-grid-mode|layout-grid-line|layout-grid-char|layout-grid|layout-flow|interpolation-mode|ime-mode|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-chars|high-contrast-adjust|grid-rows|grid-row-span|grid-row-align|grid-row|grid-layer|grid-columns|grid-column-span|grid-column-align|grid-column|font-feature-settings|flow-into|flow-from|filter|content-zooming|content-zoom-snap-type|content-zoom-snap-points|content-zoom-snap|content-zoom-chaining|content-zoom-boundary-min|content-zoom-boundary-max|content-zoom-boundary|box-pack|box-orient|box-ordinal-group|box-lines|box-line-progression|box-flex|box-direction|box-align|block-progression|behavior|background-position-y|background-position-x|backface-visibility|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|accelerator)\b</string>
- <key>name</key>
- <string>support.type.property-name.sass</string>
- </dict>
- <dict>
- <key>match</key>
- <string>\-moz-(window-shadow|user-select|user-modify|user-input|user-focus|transition-timing-function|transition-property|transition-duration|transition-delay|transition|text-size-adjust|text-decoration-style|text-decoration-line|text-decoration-color|text-blink|text-align-last|tab-size|stack-sizing|script-size-multiplier|script-min-size|script-level|padding-start|padding-end|outline-radius-topright|outline-radius-topleft|outline-radius-bottomright|outline-radius-bottomleft|outline-radius|orient|margin-start|margin-end|image-region|hyphens|force-broken-image-icon|font-language-override|font-feature-settings|float-edge|columns|column-width|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-count|box-sizing|box-pack|box-orient|box-ordinal-group|box-flex|box-direction|box-align|box-shadow|border-top-colors|border-start-width|border-start-style|border-start-color|border-start|border-right-colors|border-left-colors|border-end-width|border-end-style|border-end-color|border-end|border-bottom-colors|binding|background-inline-policy|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation)\b</string>
- <key>name</key>
- <string>support.type.property-name.sass</string>
- </dict>
- <dict>
- <key>match</key>
- <string>\-(webkit|apple|khtml)-(wrap-through|wrap-padding|wrap-margin|wrap-flow|wrap|user-select|user-modify|user-drag|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin-z|transform-origin-y|transform-origin-x|transform-origin|transform|touch-callout|text-stroke-width|text-stroke-color|text-stroke|text-size-adjust|text-security|text-fill-color|text-emphasis-position|text-decorations-in-effect|tap-highlight-color|svg-shadow|shape-outside|shape-inside|rtl-ordering|region-overflow|region-break-inside|region-break-before|region-break-after|print-color-adjust|perspective-origin-y|perspective-origin-x|perspective-origin|perspective|padding-start|padding-end|padding-before|padding-after|overflow-scrolling|order|opacity|nbsp-mode|min-logical-width|min-logical-height|max-logical-width|max-logical-height|mask-size|mask-repeat-y|mask-repeat-x|mask-repeat|mask-position-y|mask-position-x|mask-position|mask-origin|mask-image|mask-composite|mask-clip|mask-box-image-width|mask-box-image-source|mask-box-image-slice|mask-box-image-repeat|mask-box-image-outset|mask-box-image|mask-attachment|mask|marquee-style|marquee-speed|marquee-repetition|marquee-increment|marquee-direction|marquee|margin-top-collapse|margin-start|margin-end|margin-collapse|margin-bottom-collapse|margin-before-collapse|margin-before|margin-after-collapse|margin-after|logical-width|logical-height|locale|line-snap|line-grid|line-clamp|line-break|line-box-contain|line-align|justify-content|hyphenate-limit-lines|hyphenate-limit-before|hyphenate-limit-after|hyphenate-character|highlight|grid-rows|grid-row|grid-columns|grid-column|font-variant-ligatures|font-smoothing|font-size-delta|font-kerning|font-feature-settings|flow-into|flow-from|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|dashboard-region|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-progression|column-gap|column-count|column-break-inside|column-break-before|column-break-after|column-axis|color-correction|box-sizing|box-shadow|box-reflect|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|border-vertical-spacing|border-top-right-radius|border-top-left-radius|border-start-width|border-start-style|border-start-color|border-start|border-radius|border-image|border-horizontal-spacing|border-fit|border-end-width|border-end-style|border-end-color|border-end|border-bottom-right-radius|border-bottom-left-radius|border-before-width|border-before-style|border-before-color|border-before|border-after-width|border-after-style|border-after-color|border-after|background-size|background-origin|background-composite|background-clip|backface-visibility|aspect-ratio|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\b</string>
+ <string>(?&gt;-(webkit|moz|ms|o|apple|khtml|xv|wap|epub)[a-zA-Z0-9_-]+)(?!\()</string>
<key>name</key>
<string>support.type.property-name.sass</string>
</dict>
Something went wrong with that request. Please try again.