From 9b2a0845f6a64558eda796ded84b2f2500d537ad Mon Sep 17 00:00:00 2001 From: Steven Levithan Date: Wed, 18 Dec 2024 00:35:08 +0100 Subject: [PATCH] Fix invalid regex (fixes #159) --- syntaxes/hack.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntaxes/hack.json b/syntaxes/hack.json index ae06317..bf29bdd 100644 --- a/syntaxes/hack.json +++ b/syntaxes/hack.json @@ -1091,7 +1091,7 @@ ] }, { - "begin": "(?x)\n\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)\n(function)\n(?:\\s+)\n(?:\n (__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x7f-\\xff]))\n |\n ([a-zA-Z0-9_]+)\n)", + "begin": "(?x)\n\\s*((?:(?:final|abstract|public|private|protected|internal|static|async)\\s+)*)\n(function)\n(?:\\s+)\n(?:\n (__(?:call|construct|destruct|get|set|isset|unset|tostring|clone|set_state|sleep|wakeup|autoload|invoke|callStatic|dispose|disposeAsync)(?=[^a-zA-Z0-9_\\x{7f}-\\x{ff}]))\n |\n ([a-zA-Z0-9_]+)\n)", "beginCaptures": { "1": { "patterns": [