On 2015-11-02 02:27, Allan Odgaard wrote:
We normally add a match for “illegal” characters in situations lile these, for example:
{ name = "string.quoted.double.hex.python"; begin = 'x"'; end = '"'; patterns = ( { name = "invalid.illegal.not-a-hex-character.python"; match = "[^\h\n]+"; } ); }
That way, if you have: `x"abcq123"` then `q` will be highlighted as illegal (most themes should give it a red background).
Ah, ok. I guess that's better than nothing.