Skip to content

Commit

Permalink
Revert "Give the Sass Lexer a lookahead of 2 for keyword argument sup…
Browse files Browse the repository at this point in the history
…port."

This reverts commit f73854c.
  • Loading branch information
nex3 committed Oct 4, 2010
1 parent 8502f14 commit c50bffd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions lib/sass/script/lexer.rb
Expand Up @@ -169,16 +169,6 @@ def unpeek!
@scanner.pos = @tok.pos if @tok
end

# Rewinds the underlying StringScanner
# to before the previous token returned by \{#next}.
def return_previous!
if @prev
@scanner.pos = @prev.pos
@prev = nil
@tok = nil
end
end

# @return [Boolean] Whether or not there's more source text to lex.
def done?
whitespace unless after_interpolation? && @interpolation_stack.last
Expand Down
4 changes: 0 additions & 4 deletions lib/sass/script/parser.rb
Expand Up @@ -404,10 +404,6 @@ def try_tok(*names)
peeked && names.include?(peeked.type) && @lexer.next
end

def return_tok!
@lexer.return_previous!
end

def assert_done
return if @lexer.done?
@lexer.expected!(EXPR_NAMES[:default])
Expand Down

0 comments on commit c50bffd

Please sign in to comment.