File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,12 @@ class NQP::Actions is HLL::Actions {
188
188
# setting.
189
189
my $ SETTING := $ * SC . load_setting(% * COMPILING <%?OPTIONS ><setting > // ' NQPCORE' );
190
190
191
- # If it exports HOWs, grab them.
191
+ # If it exports HOWs, grab them. Also, if we're loading the
192
+ # setting, also by default load Regex library (we can't load
193
+ # this in the setting as Regex depends on the setting).
192
194
unless % * COMPILING <%?OPTIONS ><setting > eq ' NULL' {
193
195
import_HOW_exports($ SETTING );
196
+ $ * SC . load_module(' Regex' , $ * GLOBALish );
194
197
}
195
198
}
196
199
self . SET_BLOCK_OUTER_CTX(@ BLOCK [0 ]);
Original file line number Diff line number Diff line change @@ -106,12 +106,13 @@ grammar NQP::Grammar is HLL::Grammar {
106
106
:my $ * HAS_YOU_ARE_HERE := 0;
107
107
:my $ * MAIN_SUB ;
108
108
<.newpad >
109
- <.outerctx >
110
109
111
110
:my $ * PACKAGE ;
112
111
:my $ * GLOBALish ;
113
112
<.GLOBALish >
114
113
114
+ <.outerctx >
115
+
115
116
<statementlist >
116
117
[ $ || <.panic : 'Confused' > ]
117
118
}
You can’t perform that action at this time.
0 commit comments