8000 Sass scanner by korny · Pull Request #120 · rubychan/coderay · GitHub
[go: up one dir, main page]

Skip to content

Sass scanner #120

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

Merged
merged 11 commits into from
Jun 9, 2013
Prev Previous commit
Next Next commit
fix Sass highlighting in diff
  • Loading branch information
korny committed Jun 9, 2013
commit 8563acc7e29e3d5bf5281aedbc0b7088abe44877
3 changes: 0 additions & 3 deletions lib/coderay/scanners/sass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ class Sass < CSS

def setup
@state = :initial
@value_expected = false
end

def scan_tokens encoder, options
states = Array(options[:state] || @state)
string_delimiter = nil
value_expected = @value_expected

until eos?

Expand Down Expand Up @@ -191,7 +189,6 @@ def scan_tokens encoder, options

if options[:keep_state]
@state = states
@value_expected = value_expected
end

encoder
Expand Down
0