XSharpPublic icon indicating copy to clipboard operation
XSharpPublic copied to clipboard

Some new editor problems in the 2.21 beta

Open cpyrgas opened this issue 1 year ago • 0 comments

  1. 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
  1. 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
  1. 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

cpyrgas avatar Oct 03 '24 23:10 cpyrgas