Fix line counting. Ignore kind2 property comments

master
Timothy Bourke 7 years ago committed by Gwenaël Delaval
parent abfc038b6b
commit 0747494c7a

@ -223,7 +223,7 @@ rule token = parse
Loc (comment_start, comment_end))) Loc (comment_start, comment_end)))
end; end;
token lexbuf } token lexbuf }
| "--" | "--" | "--%"
{ single_line_comment lexbuf } { single_line_comment lexbuf }
| ['!' '?' '~'] | ['!' '?' '~']
['!' '$' '%' '&' '*' '+' '-' '.' '/' ':' ['!' '$' '%' '&' '*' '+' '-' '.' '/' ':'
@ -308,7 +308,7 @@ and comment = parse
{ comment lexbuf } { comment lexbuf }
and single_line_comment = parse and single_line_comment = parse
| newline { token lexbuf } | newline { new_line lexbuf; token lexbuf }
| _ { single_line_comment lexbuf } | _ { single_line_comment lexbuf }
and string = parse and string = parse

Loading…
Cancel
Save