Skip to content

Commit 7978290

Browse files
authored
Support vertical tabs and treat them as whitespace (#218)
Some preprocessors don't remove the vertical tab from the input so we should be able to handle them in the lexer.
1 parent 9b881b7 commit 7978290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cparser/Lexer.mll

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ let identifier_nondigit =
177177
let identifier = identifier_nondigit (identifier_nondigit|digit)*
178178

179179
(* Whitespaces *)
180-
let whitespace_char_no_newline = [' ' '\t' '\012' '\r']
180+
let whitespace_char_no_newline = [' ' '\t' '\011' '\012' '\r']
181181

182182
(* Integer constants *)
183183
let nonzero_digit = ['1'-'9']

0 commit comments

Comments
 (0)