Hello, I’m trying to add an entry to my custom language file, and for some reason regex lookbehind does not work. I keep getting the error “Error parsing plist xml: Error reading end tag.”
This error arises when I add the string
\b((?<=x)[0-9a-fA-F]+)
I also tried without the \b() surrounding the expression, but still get the same error. I assume I must be making an error, but I can’t figure out what it is after searching around for quite some time.
Longer excerpt (the first entry with lookahead works fine)
<dict>
<key>match</key>
<string>\b(0x(?=[0-9a-fA-F]+))</string>
<key>name</key>
<string>constant.numeric.hexadecimal.start</string>
</dict>
<dict>
<key>match</key>
<string>\b((?<=x)[0-9a-fA-F]+)</string>
<key>name</key>
<string>constant.numeric.hexadecimal.finish</string>
</dict>