Skip to content

Commit 133c989

Browse files
committed
Fix at-apply arguments
Scope all identifiers `entity.other.attribute-name.class`. Tailwind CSS utility classes are denoted without leading period.
1 parent e6ae9f4 commit 133c989

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

PostCSS.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ contexts:
192192
- meta_scope: meta.at-rule.apply.postcss
193193
- match: '{{custom_ident_begin}}'
194194
push: custom-property-variable-content
195-
- match: \.
195+
- match: \.|{{ident_begin}}
196196
scope: punctuation.definition.entity.css
197197
push: selector-class-identifier-content
198198
- include: values

tests/syntax_test.postcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ $(tag) > .$(cls) > #$(id) : $(pseudo) [$(attr)=$(value)] { $(prop): $(value); gr
267267
// ^ punctuation.definition.entity.css
268268
// ^^^^^^^^^ variable.other.postcss
269269
// ^ punctuation.definition.variable.postcss
270-
// ^^^^^^^^ support.constant.property-value.css
270+
// ^^^^^^^^ entity.other.attribute-name.class.css
271271
// ^ punctuation.terminator.rule.css
272272
}
273273

0 commit comments

Comments
 (0)