News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

scintilla22 and lexer improvement

Started by ollydbg, November 15, 2010, 06:44:11 AM

Previous topic - Next topic

ollydbg

just a reminder, I found an interesting post in codelite forum

Preprocessing and scintilla_22

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Loaden

Editor > General settings > Editor settings > Other options

ollydbg

Quote from: Loaden on November 15, 2010, 03:53:01 PM
Editor > General settings > Editor settings > Other options
No, that's not enough.
I mean this:
Codelite can collect some preprocessor identifiers, and feed the scintilla lexer. so the correct #if branch will be activated and colored.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.