Skip to content

Scss scanner #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
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