Closed bmartin closed 4 years ago
When I tried customizing perl.fileFilter like so:
"perl.fileFilter": [".pl", ".pm", ".t", ".pod"],
That results in the following warning:
Unrecognized escape \E passed through in regex; marked by <-- HERE in m/(?:\Q.pl\E|\Q.pm\E|\Q.t\E|\Q.pod\E <-- HERE )$/ at .../lib/perl5/Perl/LanguageServer/Parser.pm line 430.
This can be fixed by replacing:
$workspace -> file_filter_regex ('(?:' . join ('|', map { "\\Q$_\\E" } @$filter ) . ')$') ;
with
$workspace -> file_filter_regex ('(?:' . join ('|', map { quotemeta($_) } @$filter ) . ')$') ;
Thanks for the fix, it is commited in aa5d6a289cf3a233ea514e5c0d104410de0867c4
When I tried customizing perl.fileFilter like so:
That results in the following warning:
This can be fixed by replacing:
with