]> Shamusworld >> Repos - rmac/commitdiff
Addendum for #193: Do less tokenisation processing when inside a disabled code block
authorggn <ggn@atari.org>
Sun, 17 Apr 2022 06:48:35 +0000 (09:48 +0300)
committerShamus Hammons <jlhamm@acm.org>
Mon, 30 May 2022 19:18:39 +0000 (14:18 -0500)
token.c

diff --git a/token.c b/token.c
index 10b28320b6cd772a2cefa6a4a223f2fd59969b94..93d958f7c6ca948105354854e1347c1ceebf3711 100644 (file)
--- a/token.c
+++ b/token.c
@@ -1215,7 +1215,7 @@ DEBUG { printf("TokenizeLine: Calling fpop() from SRC_IFILE...\n"); }
                        {
                                // Only proceed if no equrundef has been detected. In that case we need to store the symbol
                                // because the directive handler (d_equrundef) will run outside this loop, further into procln.c
-                               if (!equrundef)
+                               if (!equrundef && !disabled)
                                {
                                        // Last attempt: let's see if this is an equated register.
                                        // If yes, then just store the register's keyword value instead of the symbol