I have a big Perl script where all the text turns red and yellow after this line:
if( $param =~ / *[const]* \w+ +\**(\w+)\\]]*/ )
If I comment out that line, further down the same thing happens after this line:
elsif( $$params$i][0] =~ /\*+p/ && (snip lots of other conditions) !($$params$i][0] =~ / \I\w+? \*/)
It seems that the problem is the appearance of ‘*/’ in the regex patterns.
Is this related to code folding? I tried removing those strings from the foldingStartMarker/foldingStopMarker keys in the Perl.tmLanguage file in my Windows Roaming folder, but nothing changed.
In case it’s relevant, the first pattern is trying to match strings like: const DWORD_PTR **abc_123]]. The last ‘*’ is for multiple groups of ] pairs, and the last ‘/’ is to end the =~ operator.