8000 Scss scanner by Piderman · Pull Request #162 · rubychan/coderay · GitHub
[go: up one dir, main page]

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
nested tags work
  • Loading branch information
Piderman committed Feb 9, 2014
commit 5612445ed22c1fa6235659ff513946bd127b279b
4 changes: 3 additions & 1 deletion lib/coderay/scanners/scss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ def scan_tokens encoder, options
elsif match = scan(/(?>#{RE::Ident})(?!\()/ox)
if value_expected
encoder.text_token match, :value
else
elsif check(/\s*:/)
encoder.text_token match, :key
else
encoder.text_token match, :tag
end
next
end
Expand Down
0