mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Fix block comment not separating identifiers, bug311.
This commit is contained in:
+6
-1
@@ -848,8 +848,13 @@ int V3PreProcImp::getStateToken() {
|
||||
if (m_lexp->m_keepComments == KEEPCMT_SUB) {
|
||||
string rtn; rtn.assign(yyourtext(),yyourleng());
|
||||
comment(rtn);
|
||||
} else {
|
||||
// Need to insure "foo/**/bar" becomes two tokens
|
||||
insertUnreadback (" ");
|
||||
} else if (m_lexp->m_keepComments) {
|
||||
return (tok);
|
||||
} else {
|
||||
// Need to insure "foo/**/bar" becomes two tokens
|
||||
insertUnreadback (" ");
|
||||
}
|
||||
}
|
||||
// We're off or processed the comment specially. If there are newlines
|
||||
|
||||
Reference in New Issue
Block a user