doublefint / vscode-cos

Add Caché ObjectScript support for vscode
MIT License
14 stars 12 forks source link

Code coloring can get confused by the 'less than' operator #39

Open gjsjohnmurray opened 6 years ago

gjsjohnmurray commented 6 years ago

Try this code:

YJMbad1 ;
 s a=1
 i a<1 q
 s a=1
tag ; comment
 w $zversion
 i a'="" w (a'="")
 q

Unless you add at least one space between the < and the 1 on the third line the code colorer seems to treat <1 as the start of an HTML / XML tag, so it colors the remaining code incorrectly.

Add the space to see things as they should be.

daimor commented 6 years ago

Yes, unfortunately currently code coloring too bad. We need the better parser for the code.

doublefint commented 6 years ago

Hi, John! I agree with @daimor, there is only initial support for COS ( CDL ) and very primitive support for M language