Project

General

Profile

Bug #34

Parser chokes on IFDEF statement in cEditorEdit.pkg

Added by Wil van Antwerpen almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
03/28/2017
Due date:
% Done:

0%


Description

I noticed that the code treeview was no longer populated in the cEditorEdit.pkg file.

Turns out that it is due to this tidbit:
#IFDEF TH_SCINTILLA
Class cCodeEdit is a cSciLexer
End_Class
#ELSE
Class cCodeEdit is a cCodeMaxEdit
End_Class
#ENDIF

The parser is somehow counting an end_class too many.

History

#1 Updated by Wil van Antwerpen almost 6 years ago

  • Assignee set to Wil van Antwerpen

The #IFDEF logic in the parser was originally added in there to take care of constructs like:

#IFDEF TH_SCINTILLA
Class cCodeEdit is a cSciLexer
#ELSE
Class cCodeEdit is a cCodeMaxEdit
#ENDIF
.. code ..
End_Class

as such it did take the Class keyword into account, but not the End_Class keyword.

This has been corrected in parser build 2.3.243 and now both constructs are supported.

#2 Updated by Wil van Antwerpen almost 6 years ago

  • Status changed from New to Resolved

#3 Updated by Wil van Antwerpen almost 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF