From 5894ca7b95d7fb05f1e93ee77e849a8d816d1c6d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 30 Dec 2024 16:53:51 -0300 Subject: Scanner doesn't need to anchor reserved words --- lstring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstring.h') diff --git a/lstring.h b/lstring.h index 26f4b8e1..1751e043 100644 --- a/lstring.h +++ b/lstring.h @@ -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) /* -- cgit v1.2.3-55-g6feb