[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] Scope of pattern variables



In message <82f8da1056.gavin@xxxxxxxxxxxxxxx>
          Gavin Wraith <gavin@xxxxxxxxxxxxxxx> wrote:

> I may have missed it, but I could not find anything
> in the StrongED help files about the scope of
> pattern variables. If I define a pattern, say to
> be called 'foo', in the ModeWhen file of a mode,
> is the scope of 'foo' restricted to that file?

The scope is restricted to that ModeWhen file. Patterns defined in
ModeFiles and ModeWhens can only be used in that mode. The exception
to this is BaseMode whose expressions can be used by any mode.

Finally there is the global patterns file which will be used when an
expression can't be found in either mode or BaseMode. This does not
apply to ModeWhen match expressions, which are only looked for in mode
and BaseMode.

Cheers,
Fred.

-- 
StrongED Developer
http://www.stronged.iconbar.com/

--=20
To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxxxxx
List archives at http://www.Torrens.org.uk/RO/StrongED/index.html