aboutsummaryrefslogtreecommitdiff
path: root/asm.peg
diff options
context:
space:
mode:
authorAndrew Chambers <[email protected]>2021-10-06 15:20:45 +1300
committerAndrew Chambers <[email protected]>2021-10-06 15:20:45 +1300
commit74c62bb66fe28bf5fca78809eaf9d1bf852ad524 (patch)
treeb6872919ac879a9423f82e1ff35aa024eee8f972 /asm.peg
parentc7fd672e485c2efdad83f748d0205a27681b4474 (diff)
Allow leading whitespace on lines.
Diffstat (limited to 'asm.peg')
-rw-r--r--asm.peg2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm.peg b/asm.peg
index c5326e4..03d5ba0 100644
--- a/asm.peg
+++ b/asm.peg
@@ -1,6 +1,6 @@
line =
- s:stmt (eol | !. ) { yy->v = s; }
+ ws? s:stmt (eol | !. ) { yy->v = s; }
| eol { yy->v.kind = ASM_BLANK; }
| . { yy->v.kind = ASM_SYNTAX_ERROR; }