From a309559bdb777fe9849e6e46b3ce22d9aa71d3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Thu, 27 Apr 2023 14:55:02 +0200 Subject: [PATCH] '+Inf' and '-Inf' really do not prevent the next pattern to be a reserved keyword anymore. [COMPILER] * BUG: '+Inf' and '-Inf' really do not prevent the next pattern to be a reserved keyword anymore. --- main/share/gbc_read_temp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/share/gbc_read_temp.h b/main/share/gbc_read_temp.h index d4c40d166..0ce94018c 100644 --- a/main/share/gbc_read_temp.h +++ b/main/share/gbc_read_temp.h @@ -398,7 +398,7 @@ static void add_identifier() { can_be_reserved = (index >= RS_COLON || index == RS_NEW || index == RS_OPEN || index == RS_CLOSE || index == RS_SHELL || index == RS_EXEC || index == RS_RAISE || index == RS_PIPE || index == RS_LOCK || index == RS_MEMORY || index == RS_READ || index == RS_PEEK); } - else if (!_begin_line && !last_type && index < RS_P_IF && PATTERN_is_reserved(last_pattern) && !RES_is_identifier(PATTERN_index(last_pattern)) && !PATTERN_is(last_pattern, RS_RBRA) && !PATTERN_is(last_pattern, RS_RSQR)) + else if (!_begin_line && !last_type && index < RS_P_IF && PATTERN_is_reserved(last_pattern) && !RES_is_identifier(PATTERN_index(last_pattern)) && !PATTERN_is(last_pattern, RS_PINF) && !PATTERN_is(last_pattern, RS_MINF) && !PATTERN_is(last_pattern, RS_RBRA) && !PATTERN_is(last_pattern, RS_RSQR)) can_be_reserved = FALSE; break; }