Skip to content

Commit dd03707

Browse files
committed
classes now capture inline variables
1 parent 52b0d12 commit dd03707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/scss.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def scan_tokens encoder, options
5050
encoder.text_token match, :tag
5151
next
5252
# TODO: update RE:Name to add "%" as valid start of class name
53-
elsif match = scan(/[\.\%][-_a-zA-Z0-9]+/)
53+
elsif match = scan(/(\.|\%)[^\d][-_a-zA-Z\d#\{\}\$]+/)
5454
encoder.text_token match, :class
5555
next
5656
elsif match = scan(RE::Id)

0 commit comments

Comments
 (0)