#10 bugfix #else preprocessor folding

closed
nobody
None
1
2007-10-29
2006-03-14
Dennis Lim
No

for C++/C codes,
the #else is not taken into account.
#if x
#else
#endif
is considered one solid block.
This should really be 2 blocks.

two lines added to LexCPP.cxx at line 362 will solve
this

} else if (styler.Match(j, "else")) {
levelCurrent--;

BTW, the makefile for the scintilla dll really should
be updated to account for the LexUser.cxx. Also, an
update to scintilla 1.68 would be great

Discussion

  • Dennis Lim
    Dennis Lim
    2006-03-14

    patched LexCPP.cxx

     
    Attachments
  • Dennis Lim
    Dennis Lim
    2006-03-21

    • assigned_to: nobody --> donho
     
  • Don HO
    Don HO
    2006-08-06

    • assigned_to: donho --> nobody
     
  • Don HO
    Don HO
    2007-10-29

    • status: open --> closed
    • priority: 5 --> 1