1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added support for global:: lookups

This commit is contained in:
Brian Fiete 2025-05-18 12:13:15 +02:00
parent ee50457885
commit 958a1630aa
13 changed files with 202 additions and 28 deletions

View file

@ -2630,6 +2630,13 @@ void BfParser::NextToken(int endIdx, bool outerIsInterpolate, bool disablePrepro
mToken = BfToken_Dot;
mSyntaxToken = BfSyntaxToken_Token;
}
else if (mSrc[mSrcIdx] == ':')
{
mSrcIdx++;
mTokenEnd = mSrcIdx;
mToken = BfToken_ColonColon;
mSyntaxToken = BfSyntaxToken_Token;
}
else
{
mToken = BfToken_Colon;