machete 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/VERSION +1 -1
- data/lib/machete/parser.y +1 -1
- data/spec/machete/parser_spec.rb +6 -0
- metadata +3 -3
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/machete/parser.y
CHANGED
data/spec/machete/parser_spec.rb
CHANGED
@@ -328,6 +328,12 @@ module Machete
|
|
328
328
|
'42 '.should be_parsed_as(@i42)
|
329
329
|
end
|
330
330
|
|
331
|
+
it "whitespace skipping starts from the beginning of the input, not beginning of the line" do
|
332
|
+
# This basically verifies that the whitespace-skipping regexp has "\A" at
|
333
|
+
# the beginning, not "^".
|
334
|
+
"42\n ".should be_parsed_as(@i42)
|
335
|
+
end
|
336
|
+
|
331
337
|
it "handles lexical errors" do
|
332
338
|
'@#%'.should not_be_parsed("Unexpected character: \"@\".")
|
333
339
|
end
|
metadata
CHANGED