[TxMt] Re: Restrict characters in multiline strings
Jacob Carlborg
doob at me.com
Mon Nov 2 07:44:46 UTC 2015
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.
--
/Jacob Carlborg
More information about the textmate
mailing list