I'm trying to learn Atom's syntax highlighting/grammar rules, which heavily use JS regular expressions, and came across an unfamiliar pattern in the python grammar file.
The pattern starts with a (?x)
which is an unfamiliar regex to me. I looked it up in an online regex tester, which seems to say that it's invalid. My initial thought was it represents an optional left paren, but I believe the paren should be escaped here.
Does this only have meaning in the Atom's coffeescript grammar, or am I overlooking a regex meaning?
(This pattern also appear in the textmate language file that I believe Atom's came from).