lib/liquidscript/scanner/lexer.rb in liquidscript-0.1.5 vs lib/liquidscript/scanner/lexer.rb in liquidscript-0.2.0
- old
+ new
@@ -403,26 +403,27 @@
@tokens = []
line = proc do
@line[:start] = @ts
@line[:num] += 1
+ emit :newline
end
-# line 412 "lib/liquidscript/scanner/lexer.rb"
+# line 413 "lib/liquidscript/scanner/lexer.rb"
begin
@p ||= 0
@pe ||= @data.length
@cs = lexer_start
@ts = nil
@te = nil
@act = 0
end
-# line 109 "lib/liquidscript/scanner/lexer.rl"
+# line 110 "lib/liquidscript/scanner/lexer.rl"
-# line 424 "lib/liquidscript/scanner/lexer.rb"
+# line 425 "lib/liquidscript/scanner/lexer.rb"
begin
_klen, _trans, _keys, _acts, _nacts = nil
_goto_level = 0
_resume = 10
_eof_trans = 15
@@ -448,11 +449,11 @@
when 1 then
# line 1 "NONE"
begin
@ts = @p
end
-# line 454 "lib/liquidscript/scanner/lexer.rb"
+# line 455 "lib/liquidscript/scanner/lexer.rb"
end # from state action switch
end
if _trigger_goto
next
end
@@ -744,11 +745,11 @@
when 27 then
begin begin @p = (( @te))-1; end
error end
end
end
-# line 750 "lib/liquidscript/scanner/lexer.rb"
+# line 751 "lib/liquidscript/scanner/lexer.rb"
end # action switch
end
end
if _trigger_goto
next
@@ -764,11 +765,11 @@
case _lexer_actions[_acts - 1]
when 0 then
# line 1 "NONE"
begin
@ts = nil; end
-# line 770 "lib/liquidscript/scanner/lexer.rb"
+# line 771 "lib/liquidscript/scanner/lexer.rb"
end # to state action switch
end
if _trigger_goto
next
end
@@ -791,10 +792,10 @@
break
end
end
end
-# line 110 "lib/liquidscript/scanner/lexer.rl"
+# line 111 "lib/liquidscript/scanner/lexer.rl"
clean!
@tokens
end