Author Topic: scintilla22 and lexer improvement  (Read 7876 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
scintilla22 and lexer improvement
« on: November 15, 2010, 06:44:11 am »
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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: scintilla22 and lexer improvement
« Reply #1 on: November 15, 2010, 03:53:01 pm »
Editor > General settings > Editor settings > Other options

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: scintilla22 and lexer improvement
« Reply #2 on: November 16, 2010, 05:05:30 am »
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.