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
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
The text was updated successfully, but these errors were encountered: