Skip to content

Commit 8e1a836

Browse files
dc-makcp526
authored andcommitted
Fix #668 - pragma line loc info
1 parent c1eb2a1 commit 8e1a836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parsers/c/c_lexer.mll

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ and hash = parse
424424
offset_location lexbuf file n
425425
)}
426426
| ("pragma" [^ '\n']* '\n')
427-
{ }
427+
{ new_line lexbuf }
428428
| [^ '\n']* eof
429429
{ raise (Error Errors.Cparser_unexpected_eof) }
430430
| _

0 commit comments

Comments
 (0)