summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-12-01 12:10:05 +0100
committerJo-Philipp Wich <jo@mein.io>2021-12-01 12:10:05 +0100
commit07802f37ddb13489cfde314716ad6181dd9b1671 (patch)
tree0a119aafdbfdbdcc5fd7cf87f513c525c27e6d2a /include
parent54ef6c09116430e5ce35777bd899f750d84e4dc1 (diff)
syntax: disallow keywords in object property shorthand notation
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include')
-rw-r--r--include/ucode/lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ucode/lexer.h b/include/ucode/lexer.h
index 05f5336..30849e0 100644
--- a/include/ucode/lexer.h
+++ b/include/ucode/lexer.h
@@ -170,6 +170,8 @@ void uc_lexer_free(uc_lexer_t *lex);
uc_token_t *uc_lexer_next_token(uc_lexer_t *lex);
+bool uc_lexer_is_keyword(uc_value_t *label);
+
bool utf8enc(char **out, int *rem, int code);
const char *