aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lexer.mll
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/lexer.mll3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lexer.mll b/lib/lexer.mll
index 417369b..90beacf 100644
--- a/lib/lexer.mll
+++ b/lib/lexer.mll
@@ -27,7 +27,8 @@ let ident = ['A'-'Z' 'a'-'z'] ['A'-'Z' 'a'-'z' '0'-'9' '_']*
let string_body = ([^ '"' '\\'] | '\\' _)*
rule token = parse
- | [' ' '\t' '\r' '\n']+ { token lexbuf }
+ | '\n' { Lexing.new_line lexbuf; token lexbuf }
+ | [' ' '\t' '\r']+ { token lexbuf }
| '%' [^ '\n']* { token lexbuf }
| "#(" { HASH_LPAREN }
| '(' { LPAREN }