From 78afe09ebb3b87f9e2886112770b6e89f5407b03 Mon Sep 17 00:00:00 2001 From: orca <35243139+thennothinghappened@users.noreply.github.com> Date: Sun, 15 Dec 2024 10:13:37 +1100 Subject: [PATCH] fix(gml) more specific scope for function decl Co-authored-by: Josh Goebel --- src/languages/gml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/gml.js b/src/languages/gml.js index 7fecd7aa98..cf2422ae8d 100644 --- a/src/languages/gml.js +++ b/src/languages/gml.js @@ -1408,7 +1408,7 @@ export default function(hljs) { */ const FUNCTION_DECLARATION = { match: [ - "function", + "title.function", /\s+/, VALID_IDENTIFIER_RE, /\s*?\(/