In Perl a \x switch enables whitespaces inside a regexp
The characters after a '#' and between the linebreak are not considered as comments in terms of formatting.
Steps to Reproduce
Create a regexp with \x switch and add comments into it.
For example:
m/^(.{2}) # $byteLow 1 byte - any two characters after start
(.{2}) # $byteHigh 1 byte - any two characters
.{6} # - any 6 characters
$/x; # line end, x to enable whitespaces in regexp
Expected results
Every character shall be formatted as a comment between the # and the linebreak in the regexp, if the \x switch is enabled.
Actual results
The entire line has regexp format, even if a # is present with the \x switch.
See attached screenshot.
Platform Information
Komodo Edit, version 12.0.1, build 18441, platform win32-x86. Built on Tue Feb 11 04:14:27 2020.
Short Summary
In Perl a \x switch enables whitespaces inside a regexp The characters after a '#' and between the linebreak are not considered as comments in terms of formatting.
Steps to Reproduce
Create a regexp with \x switch and add comments into it. For example: m/^(.{2}) # $byteLow 1 byte - any two characters after start (.{2}) # $byteHigh 1 byte - any two characters .{6} # - any 6 characters $/x; # line end, x to enable whitespaces in regexp
Expected results
Every character shall be formatted as a comment between the # and the linebreak in the regexp, if the \x switch is enabled.
Actual results
The entire line has regexp format, even if a # is present with the \x switch. See attached screenshot.
Platform Information
Komodo Edit, version 12.0.1, build 18441, platform win32-x86. Built on Tue Feb 11 04:14:27 2020.
Additional Information
https://perldoc.perl.org/perlre#/x-and-/xx![image](https://user-images.githubusercontent.com/88725827/205007604-a5809526-0377-4e1a-bfd4-60f0101703f1.png)