From 5c9674880206f66c109adc1bedf8f786166f125f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 Jan 2019 17:48:14 -0800 Subject: Fix for formatting indented code with the format tool. --- nomsu.5.peg | 6 ------ 1 file changed, 6 deletions(-) (limited to 'nomsu.5.peg') diff --git a/nomsu.5.peg b/nomsu.5.peg index 772ca75..751e033 100644 --- a/nomsu.5.peg +++ b/nomsu.5.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 -> ' '))+ ~} -- cgit v1.2.3