diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-12-30 16:53:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-12-30 16:53:51 -0300 |
commit | 5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d (patch) | |
tree | f73f22e8661399b0aa4a115671c08c240f745e0b /lstring.h | |
parent | abf8b1cd4a798fada026b4046e9dbc08791963f2 (diff) | |
download | lua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.tar.gz lua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.tar.bz2 lua-5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d.zip |
Scanner doesn't need to anchor reserved words
Diffstat (limited to 'lstring.h')
-rw-r--r-- | lstring.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ | |||
45 | /* | 45 | /* |
46 | ** test whether a string is a reserved word | 46 | ** test whether a string is a reserved word |
47 | */ | 47 | */ |
48 | #define isreserved(s) ((s)->tt == LUA_VSHRSTR && (s)->extra > 0) | 48 | #define isreserved(s) (strisshr(s) && (s)->extra > 0) |
49 | 49 | ||
50 | 50 | ||
51 | /* | 51 | /* |