aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm.peg4
1 files changed, 3 insertions, 1 deletions
diff --git a/asm.peg b/asm.peg
index 24d397f..1ba1053 100644
--- a/asm.peg
+++ b/asm.peg
@@ -8,7 +8,9 @@ ws = ([ \t]+ | comment)+
comment = "/*" ( ! "\n" ! "*/" . )* "*/" # No support for multiline comments for now as they break our line numbers.
-eol = ws? "\n"
+eolcomment = '#' (! "\n" .)+
+eol = ws? eolcomment? "\n"
+
stmt =
'.' d:directive eol {$$ = d;}