Skip to content

Commit aeb0daf

Browse files
committed
[[ ExternalsApiV5 ]] Fix negative number tokenization.
1 parent 4ee11af commit aeb0daf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lcidlc/src/Scanner.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ static bool ScannerConsume(ScannerRef self)
299299
{
300300
t_type = kTokenTypeNumber;
301301

302+
// MW-2013-06-17: [[ ExternalsApiV5 ]] Since number-prefix is not a subset of
303+
// number-suffix (due to '-'), make sure we advance past the prefix before
304+
// continuing the scan.
305+
self -> input_frontier += 1;
306+
self -> input_column += 1;
307+
302308
while(!ScannerIsEndPrefix(self) &&
303309
ScannerIsIntegerSuffix(self))
304310
{

0 commit comments

Comments
 (0)