We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b73b6c commit 1b2785eCopy full SHA for 1b2785e
script.py
@@ -135,6 +135,8 @@ def highlight_function(
135
) -> str:
136
function_name = matches[2]
137
script_name = f'gml_GlobalScript_{function_name}'
138
+ if data.game == 'undertale':
139
+ script_name = f'gml_Script_{function_name}'
140
if script_name not in text:
141
# This might be a local function
142
return matches[0]
@@ -211,7 +213,7 @@ def process_line(
211
213
flags=re.IGNORECASE
212
214
)
215
line = re.sub(
- r'(scr_84_get_lang_string(?:_ch1)?\(")([a-zA-Z0-9_-]+)("\))',
216
+ r'(scr_(?:84_get_lang_string(?:_ch1)?|gettext)\(")([a-zA-Z0-9_-]+)("\))',
217
lambda matches: highlight_text_ch1(matches, data),
218
line,
219
0 commit comments