File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
src/Language/SystemVerilog/Parser Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -509,6 +509,8 @@ postProcess stack (Token Id_escaped str pos : ts) =
509509 where
510510 t' = Token Id_escaped str' pos
511511 str' = (++ " " ) $ init str
512+ postProcess _ (Token Unknown str pos : _) =
513+ throwError $ show pos ++ " : unknown token '" ++ str ++ " '"
512514postProcess [] (t : ts) = do
513515 ts' <- postProcess [] ts
514516 return $ t : ts'
Original file line number Diff line number Diff line change 1- // pattern: Parse error: unexpected token '`'
1+ // pattern: unknown token '`'
2+ // location: double_backtick.sv:4:5
23module top ;
34 ``
45endmodule
Original file line number Diff line number Diff line change 1- // pattern: Parse error
1+ // pattern: unknown token '`'
2+ // location: stray_escaped_vendor_comment.sv:4:6
23module top ;
34 / ``* some awful garbage * ``/
45endmodule
You can’t perform that action at this time.
0 commit comments