mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix main shader & lua parser
This commit is contained in:
parent
d3e2ad5e99
commit
00ce65ef66
2 changed files with 5 additions and 1 deletions
|
|
@ -113,8 +113,9 @@ public:
|
|||
auto start = currentLocation();
|
||||
if (is_lua_identifier_start(c)) {
|
||||
auto name = parseLuaName();
|
||||
TokenTag tag = (is_lua_keyword(name) ? TokenTag::KEYWORD : TokenTag::NAME);
|
||||
emitToken(
|
||||
is_lua_keyword(name) ? TokenTag::KEYWORD : TokenTag::NAME,
|
||||
tag,
|
||||
std::move(name),
|
||||
start
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue