Skip to content

Commit 569865f

Browse files
author
jneen
committed
fix sasscommon
1 parent d7e3d2f commit 569865f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

lib/rouge/lexers/sass/common.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,9 @@ class SassCommon < RegexLexer
156156

157157
state :attr_common do
158158
mixin :has_interp
159-
rule id do |m|
160-
if CSS.properties.include? m[0]
161-
token Name::Label
162-
else
163-
token Name::Attribute
164-
end
159+
keywords id do
160+
rule CSS::PROPERTIES, Name::Label
161+
default Name::Attribute
165162
end
166163
end
167164

0 commit comments

Comments
 (0)