Scanner doesn't need to anchor reserved words

This commit is contained in:
Roberto Ierusalimschy
2024-12-30 16:53:51 -03:00
parent abf8b1cd4a
commit 5894ca7b95
2 changed files with 20 additions and 12 deletions

View File

@@ -45,7 +45,7 @@
/*
** test whether a string is a reserved word
*/
#define isreserved(s) ((s)->tt == LUA_VSHRSTR && (s)->extra > 0)
#define isreserved(s) (strisshr(s) && (s)->extra > 0)
/*