Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'.

[COMPILER]
* BUG: Correctly raise an error if a quoted identifier starting with '{' has no corresponding '}'.
This commit is contained in:
gambas 2018-01-22 20:10:30 +01:00
parent 477116942d
commit df26bab7c4

View file

@ -863,8 +863,10 @@ static void add_quoted_identifier(void)
len++;
}
if (get_char() == '}')
source_ptr++;
if (get_char() != '}')
THROW("Missing '}'");
source_ptr++;
if (PATTERN_is(last_pattern, RS_EVENT) || PATTERN_is(last_pattern, RS_RAISE))
{