You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I honestly don't know what sorcery is used to make this work (this function works the way I need it), but this part breaks the syntax highlight.
Here is the full expression from the last line of the function, minus the } < < part:
As you can see, the two opening parentheses in the beginning do not match the closing parentheses in the end (after 1>&2 and 2>&1 respectively), even though they should, because they do when I remove the offending string.
I couldn't figure out what exactly breaks the syntax, you can try removing parts of the offending string and some other parts will be colored differently, but still in a broken way.
Maybe this function's syntax is just too complex for a regex? Or is there no impossible things in regex?
The text was updated successfully, but these errors were encountered:
The code with a problem is:
It looks like:
Full code:
As you can see, some things inside the function
check
are broken, and after the function definition it's completely broken.It should look like:
I couldn't fix it completely, but something like this, I guess:
The problem is in this part:
I honestly don't know what sorcery is used to make this work (this function works the way I need it), but this part breaks the syntax highlight.
Here is the full expression from the last line of the function, minus the
} < <
part:As you can see, the two opening parentheses in the beginning do not match the closing parentheses in the end (after
1>&2
and2>&1
respectively), even though they should, because they do when I remove the offending string.I couldn't figure out what exactly breaks the syntax, you can try removing parts of the offending string and some other parts will be colored differently, but still in a broken way.
Maybe this function's syntax is just too complex for a regex? Or is there no impossible things in regex?
The text was updated successfully, but these errors were encountered: