MOHAWK: Fix parsing the Arthur's Computer Adventure globals section
This commit is contained in:
parent
9ca62e6f61
commit
4025c20ea4
1 changed files with 5 additions and 0 deletions
|
@ -1746,6 +1746,10 @@ uint LBCode::parseCode(const Common::String &source) {
|
||||||
if (token != ' ' && token != '(' && wasFunction)
|
if (token != ' ' && token != '(' && wasFunction)
|
||||||
error("while parsing script '%s', encountered incomplete function call", source.c_str());
|
error("while parsing script '%s', encountered incomplete function call", source.c_str());
|
||||||
|
|
||||||
|
// Skip C++-style comments
|
||||||
|
if (token == '/' && lookahead == '/')
|
||||||
|
break;
|
||||||
|
|
||||||
// First, we check for simple operators.
|
// First, we check for simple operators.
|
||||||
for (uint i = 0; i < NUM_LB_OPERATORS; i++) {
|
for (uint i = 0; i < NUM_LB_OPERATORS; i++) {
|
||||||
if (token != operators[i].token)
|
if (token != operators[i].token)
|
||||||
|
@ -1776,6 +1780,7 @@ uint LBCode::parseCode(const Common::String &source) {
|
||||||
switch (token) {
|
switch (token) {
|
||||||
// whitespace
|
// whitespace
|
||||||
case ' ':
|
case ' ':
|
||||||
|
case '\t':
|
||||||
// ignore
|
// ignore
|
||||||
break;
|
break;
|
||||||
// literal string
|
// literal string
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue