Skip to content

Commit

Permalink
Fix semicolon-terminated at layer statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel committed Aug 31, 2024
1 parent e73f09c commit 61e8f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CSS3.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ contexts:
- match: '}'
scope: punctuation.section.at-media.end.css
pop: true
- match: ';'
scope: punctuation.terminator.layer.css
pop: true
- match: '{'
scope: punctuation.section.at-media.begin.css
push:
Expand All @@ -495,6 +498,8 @@ contexts:
- include: nestable-at-rules
- include: properties
- include: rule
- include: identifier
- include: stray-semicolon
- include: stray-brace

at-namespace:
Expand Down
4 changes: 3 additions & 1 deletion test/at-layer.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@layer test.bar, test;

@layer test {
foo {
color: red;
Expand All @@ -8,4 +10,4 @@
bar {
color: blue;
}
}
}

0 comments on commit 61e8f81

Please sign in to comment.