Skip to content

Commit

Permalink
Fix invalid regex (fixes slackhq#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Dec 17, 2024
1 parent e603199 commit 9b2a084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxes/hack.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 9b2a084

Please sign in to comment.