Permalink
Browse files

single indent

  • Loading branch information...
masak committed Mar 22, 2014
1 parent 9c0f6b7 commit 08bfb4fd42113774a635da81074728a2afcca2c4
Showing with 11 additions and 0 deletions.
  1. +2 −0 lib/Text/Indented.pm
  2. +9 −0 t/parse-indent.t
View
@@ -1 +1,3 @@
grammar Text::Indented;
+
+regex TOP { .* }
View
@@ -32,4 +32,13 @@ sub fails_with($input, $ex_type, $message = $ex_type.^name) {
}
}
+{
+ my $input = q:to/EOF/;
+ Level 1
+ Level 2
+ EOF
+
+ parses_correctly($input, 'single indent');
+}
+
done;

0 comments on commit 08bfb4f

Please sign in to comment.