lib/liquidscript/scanner/liquidscript.rb in liquidscript-0.6.0 vs lib/liquidscript/scanner/liquidscript.rb in liquidscript-0.6.1
- old
+ new
@@ -9,10 +9,10 @@
define do
default_context :main
context :main do
set :number, %r{
- -? [0-9][1-9]* # the base of the number
+ -? [1-9][0-9]* # the base of the number
(\.[0-9]+)? # decmial portion, if needed
([eE][+-]?[0-9]+)? # scientific notation
}x
set :string, %r{