summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-04-28 23:52:37 +0200
committerJo-Philipp Wich <jo@mein.io>2021-04-29 00:10:56 +0200
commite66b2ad400203c27d7a17edea2b9952f110e9020 (patch)
treeb3ed1d3e4e8141dd215ac3b116a0440bc93b5cbe /tests
parente29b5744132d7dfb2989c70d4255840126d6ad19 (diff)
compiler, lexer: improve lexical state handling
- Instead of disambiguating division operator vs. regexp literal by looking at the preceeding token, raise a "no regexp" flag within the appropriate parser states to tell the lexer how to treat a forward slash when parsing the next token - Introduce another "no keyword" flag which disables parsing labels into keywords when reading the next token and set it in the appropriate parser states. This allows using reserved names in object declarations and property access expressions Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions