Lexor detects that excaped identifiers may be package names.

This commit is contained in:
Stephen Williams 2013-05-31 19:52:11 -07:00
parent 096e53dea4
commit bfe3998eaa
1 changed files with 7 additions and 0 deletions

View File

@ -367,6 +367,13 @@ TU [munpf]
\\[^ \t\b\f\r\n]+ {
yylval.text = strdupnew(yytext+1);
if (gn_system_verilog()) {
if (PPackage*pkg = pform_test_package_identifier(yylval.text)) {
delete[]yylval.text;
yylval.package = pkg;
return PACKAGE_IDENTIFIER;
}
}
if (gn_system_verilog()) {
if (data_type_t*type = pform_test_type_identifier(yylval.text)) {
delete[]yylval.text;