Skip to content
Prev Previous commit
Next Next commit
classes now capture inline variables
  • Loading branch information
Piderman committed Feb 10, 2014
commit dd03707c03dd89c20da882404d554caf30e1f954
2 changes: 1 addition & 1 deletion lib/coderay/scanners/scss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def scan_tokens encoder, options
encoder.text_token match, :tag
next
# TODO: update RE:Name to add "%" as valid start of class name
elsif match = scan(/[\.\%][-_a-zA-Z0-9]+/)
elsif match = scan(/(\.|\%)[^\d][-_a-zA-Z\d#\{\}\$]+/)
encoder.text_token match, :class
next
elsif match = scan(RE::Id)
Expand Down