Implement seeking in the pre-scanner info. (#3126)
After changing the lexing position, the current position of the scanner info must be moved as well. Fixes #3101 Fixes #3102 JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Dániel Bátyai
parent
0eae2f6207
commit
40e63d1207
@@ -300,17 +300,6 @@ typedef struct
|
||||
uint8_t has_escape; /**< has escape sequences */
|
||||
} lexer_lit_location_t;
|
||||
|
||||
/**
|
||||
* Range of input string which processing is postponed.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
const uint8_t *source_p; /**< next source byte */
|
||||
const uint8_t *source_end_p; /**< last source byte */
|
||||
parser_line_counter_t line; /**< token start line */
|
||||
parser_line_counter_t column; /**< token start column */
|
||||
} lexer_range_t;
|
||||
|
||||
/**
|
||||
* Lexer token.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user