aboutsummaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-15 12:43:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-05-15 12:43:37 -0300
commit3fb7a77731e6140674a6b13b73979256bfb95ce3 (patch)
treee877e7bb99ac7d2d6c7bf6a9c7c94948f0ddaf65 /llex.h
parentfded0b4a844990b1a6d0cda1aba25df33eb5f46f (diff)
downloadlua-3fb7a77731e6140674a6b13b73979256bfb95ce3.tar.gz
lua-3fb7a77731e6140674a6b13b73979256bfb95ce3.tar.bz2
lua-3fb7a77731e6140674a6b13b73979256bfb95ce3.zip
Internalized string "break" kept by the parser
The parser uses "break" as fake label to compile "break" as "goto break". To avoid producing this string at each use, it keeps it available in its state.
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llex.h b/llex.h
index 078e4d31..0dba9d60 100644
--- a/llex.h
+++ b/llex.h
@@ -75,6 +75,7 @@ typedef struct LexState {
75 struct Dyndata *dyd; /* dynamic structures used by the parser */ 75 struct Dyndata *dyd; /* dynamic structures used by the parser */
76 TString *source; /* current source name */ 76 TString *source; /* current source name */
77 TString *envn; /* environment variable name */ 77 TString *envn; /* environment variable name */
78 TString *brkn; /* "break" name (used as a label) */
78} LexState; 79} LexState;
79 80
80 81