|
From: | Federico Bruni |
Subject: | Re: [Help-source-highlight] conditional highlight (without losing other definitions) |
Date: | Thu, 23 Feb 2012 00:05:13 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
Il 22/02/2012 10:42, Lorenzo Bettini ha scritto:
If I remember correctly, you can create a variable for the single delimiter and then use the variable twice (in your case), for instance (not tested) vardef STRING = "\"" string delim $STRING $STRING multiline using vardef STRING = '".*"' will not let you use the environment mechanisms and will surely eagerly try to match everything till it finds another "
I was interested in variables because I wanted to type less. The variable above is useless for me.And I've just realized that I can't use variables for environment definitions, which is what I would really need to "shorten".
For example: environment scheme delim '#\'?\(' ")" multiline nested begin environment scheme delim "(" ")" multiline nested begin include "url.lang" end environment string delim "\"" "\"" multiline begin include "url.lang" end end I think I'll go back and use the list. Thanks anyway for your advices, Federico
[Prev in Thread] | Current Thread | [Next in Thread] |