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

[StrongED] Re: Manual ID

In article <a8647a3357.fjgraute@xxxxxxxxx>,
   Fred Graute <fjgraute@xxxxxxxxx> wrote:
> ID is short for identifier and in most cases this refers to variables in
> a programming language. Basically anything that isn't defined in the
> ModeFile by means of a SyntaxWords group or a SyntaxComment is coloured
> as 'Identifiers' _if_ the ID keywords are defined, otherwise the 'Text'
> colour is used.

> ID_FirstChar defined what characters an identifier can start with. Some
> programming languages have restrictions on this, eg in BBC BASIC IDs
> can't start with a digit.

> ID_Middle defines which characters can be in the middle (ie not first or
> last) of an identifier.

> ID_LastChar is used for special characters that can only be used at the
> end of an identifier. In BBC BASIC integer variables end with '%', and
> string variables with '$'.

Thanks, Fred, that helps a lot.

But a problem. In HTML mode these are defined:
  ID_FirstChar	<
  ID_Middle	/A-Za-z_0-9
  ID_LastChar	A-Za-z_0-9>

However changing 
  ID_LastChar	>
appears to have no effect. e.g. <z still gets coloured as an identifier. I
expected it not to get coloured, but <z> would.

The written up section is

Richard Torrens.
http://www.Torrens.org for genealogy, natural history, wild food, walks, cats
and more!

To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at