Skip to content

Commit

Permalink
fix #80 property-names with a trailing space
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Jun 2, 2021
1 parent 4ee59a5 commit f9bcfe2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/Sass.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ contexts:
- meta_scope: meta.selector.css
- include: selector-parts
# custom elements
- match: '\s*({{custom_elements}})(?![-:])'
- match: '\s*({{custom_elements}})(?!-|\s*:)'
captures:
1: entity.name.tag.custom.css
push:
Expand Down
2 changes: 2 additions & 0 deletions Tests/syntax_test_sass.sass
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ input:not([type="radio"]):not(h1):not(custom-element):not(%placeholder), select,
// ^ support.constant.property-value.css
// ^ support.constant.property-value.css
// ^ support.constant.property-value.css
align-self : baseline
// ^ support.type.property-name.css
object-fit: scale-down
// ^^^^^^^^^ support.type.property-name.css
// ^ - meta.selector
Expand Down
2 changes: 2 additions & 0 deletions Tests/syntax_test_scss.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ selector-ish::before[data-type="text"]:not(:first-child),
// ^ punctuation.section.property-list.begin
color: #00ff00;
height: 97%;
align-self : baseline;
// ^ support.type.property-name.css
object-fit: scale-down;
// ^ support.type.property-name.css
// ^ - meta.selector
Expand Down

0 comments on commit f9bcfe2

Please sign in to comment.