Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
single indent
  • Loading branch information
Carl Masak committed Mar 22, 2014
1 parent 9c0f6b7 commit 08bfb4f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Text/Indented.pm
@@ -1 +1,3 @@
grammar Text::Indented;

regex TOP { .* }
9 changes: 9 additions & 0 deletions t/parse-indent.t
Expand Up @@ -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.