XSharpPublic
XSharpPublic copied to clipboard
Some new editor problems in the 2.21 beta
- In the following code, put the caret on the keywords EXPORT, PROTECTED, EVENT, METHOD etc, they all get highlighted (on their own) as matching tokens like IF/ENDIF etc, which is of course not right.
CLASS TestClass
EXPORT n AS INT
PROTECTED EVENT e AS eventhandler
PROPERTY Ppp AS INT AUTO
METHOD mmm() AS VOID
STATIC METHOD sss()
END CLASS
- If you type manually the following, indentation becomes like that. Note that PROCEDURE does not get indented one level more to the class definition, and ENDDEFINE goes one tab to the right. After doing a format document, END DEFINE goes to the first column, which is also wrong. Adding an ENDPROC fixes the problem with ENDDEFINE, but the indentation problem with PROCEDURE itself remains:
BEGIN NAMESPACE ns
DEFINE classname
PROCEDURE procname()
END DEFINE
END NAMESPACE
- There are some painting problems with matching tokens highliting, for example, type this and put the care in front of IF. Now hit space, to bring the code to the right, highliting goes completely berserk!
IF TRUE
ELSE
ENDIF