It was written taking advantage of the xflag, which ignores white-space (including comments)
However, the VS Code editor doesn't understand that the comments are really active comments, and not part of the pattern:
Note that the real comments on the other lines are recognized (faded color).
I would expect the comments within the x flagged pattern also to be recognized.
Consider the following code which strips information out of a line:
It was written taking advantage of the
x
flag, which ignores white-space (including comments)However, the VS Code editor doesn't understand that the comments are really active comments, and not part of the pattern:
Note that the real comments on the other lines are recognized (faded color). I would expect the comments within the
x
flagged pattern also to be recognized.