Skip to content

Commit 2f11a47

Browse files
vrugtehagelargyleink
authored andcommitted
Fix semicolon-terminated at layer statements
1 parent e73f09c commit 2f11a47

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CSS3.sublime-syntax

+5
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ contexts:
486486
- match: '}'
487487
scope: punctuation.section.at-media.end.css
488488
pop: true
489+
- match: ';'
490+
scope: punctuation.terminator.layer.css
491+
pop: true
489492
- match: '{'
490493
scope: punctuation.section.at-media.begin.css
491494
push:
@@ -495,6 +498,8 @@ contexts:
495498
- include: nestable-at-rules
496499
- include: properties
497500
- include: rule
501+
- include: identifier
502+
- include: stray-semicolon
498503
- include: stray-brace
499504

500505
at-namespace:

test/at-layer.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@layer test.bar, test;
2+
13
@layer test {
24
foo {
35
color: red;
@@ -8,4 +10,4 @@
810
bar {
911
color: blue;
1012
}
11-
}
13+
}

0 commit comments

Comments
 (0)