aboutsummaryrefslogtreecommitdiff
path: root/nomsu.4.peg
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-15 17:48:14 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-15 17:48:35 -0800
commit5c9674880206f66c109adc1bedf8f786166f125f (patch)
tree30d95a1aacd2b30f8cb060846cbe9efd09e31aca /nomsu.4.peg
parentf6fe028f1786d7e582623fc26df916fcd05c2e31 (diff)
Fix for formatting indented code with the format tool.
Diffstat (limited to 'nomsu.4.peg')
-rw-r--r--nomsu.4.peg6
1 files changed, 0 insertions, 6 deletions
diff --git a/nomsu.4.peg b/nomsu.4.peg
index bcfc972..873638a 100644
--- a/nomsu.4.peg
+++ b/nomsu.4.peg
@@ -11,22 +11,16 @@ shebang <- "#!" (!"nomsu" [^%nl])* "nomsu" ws+ "-V" ws* [0-9.]+ [^%nl]* (%nl / !
eof <- !.
file_chunks (FileChunks) <-
- {:curr_indent: ' '* :}
{:shebang: shebang :}?
(top_block (nl_nodent section_division top_block)*)
blank_lines?
ws* unexpected_chunk?
- {:curr_indent: %nil :}
top_block (Block) <-
- {:curr_indent: ' '* :}
comment? blank_lines? statement (nl_nodent statement)*
- {:curr_indent: %nil :}
empty_block (Block) <-
- {:curr_indent: ' '* :}
comment? blank_lines?
- {:curr_indent: %nil :}
nodent <- (unexpected_indent [^%nl]* / =curr_indent)
indent <- {~ =curr_indent (ws / (%tab -> ' '))+ ~}