Hi,

i want to create my own highlighter and has some problem with the syntax. The
language comes from Siemens SIMATIC for PLC and is called AWL in German. Here
the description:

Comments:

// Comment

Depending on the source all lines are ended with ";" or not.

Example of problematic operators because of the "=" (the operators are always on
the left except when having a label, as in assembler):


=     (variable)
==I
<=I
/I

Labels:

TEST:  NOP 0

Local variable are always beginning with #, example:

=   #Temp_variable   // possibility 1
=   #Temp_variable;  // possibility 2

Some operators are wrong recognized when located in variables:
U
O
etc.
in such lines:


U   #Structure._U_.test


Last, there are such constants:


B#16#0
B#16#F2
L#1000


How can i add all this to the .ini?
For the constants i wish i could write something like 
B#16#?? B#16#* instead of B#16#0= in the .ini file.

Thanks

Thomas

-- 
<http://forum.pspad.com/read.php?2,39084,39084>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem