PP: Recognize the '::' token, and translate appropriately to GLSL/HLSL token.
This commit is contained in:
parent
6212e86faa
commit
523e20dc02
8 changed files with 26 additions and 3 deletions
|
|
@ -691,6 +691,12 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
|
|||
pp->parseContext.ppError(ppToken->loc, "End of line in string", "string", "");
|
||||
}
|
||||
return PpAtomConstString;
|
||||
case ':':
|
||||
ch = getch();
|
||||
if (ch == ':')
|
||||
return PpAtomColonColon;
|
||||
ungetch();
|
||||
return ':';
|
||||
}
|
||||
|
||||
ch = getch();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue