Skip to content

Commit

Permalink
fix #52 { } and ; are invalid in sass
Browse files Browse the repository at this point in the history
  • Loading branch information
braver committed Dec 8, 2018
1 parent 0c4f1b4 commit aa443b9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Syntaxes/Sass.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ variables:
contexts:
main:
- match: '\{|\}|;'
scope: invalid.illegal.sass
- include: frontmatter
- include: comment-block
- include: comment-line
Expand Down Expand Up @@ -602,6 +604,8 @@ contexts:
pop: true

property-values:
- match: ';'
scope: invalid.illegal.sass
- match: '\!\s*important'
scope: keyword.other.important.css
captures:
Expand Down
11 changes: 11 additions & 0 deletions Tests/syntax_test_sass.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@
This is nested beneath the comment as well,
so it also won't appear
/*
Sass indented syntax doesn't use { } or ;
*/

div {
// ^ invalid.illegal.sass
color: blue;
// ^ invalid.illegal.sass
}
// <- invalid.illegal.sass
/*
Property syntax with the colon before the property name
*/
Expand Down

0 comments on commit aa443b9

Please sign in to comment.