Home » Developing U++ » U++ Developers corner » CodeEditor syntax support refactored
CodeEditor syntax support refactored [message #43133] |
Thu, 15 May 2014 08:47 |
|
mirek
Messages: 14038 Registered: November 2005
|
Ultimate Member |
|
|
In order to open the path to create highlighting (and other syntax support) for languages that are not that much similiar to C++ (e.g. html), I have heavily refactored the thing.
There is now a new class EditorSyntax which represents syntax of specific language for the CodeEditor at some point in the file. It also provides information about braces and indentation logic (we might add more in the future) and is capable of highlighting line.
Derived classes must support Serialization - this is used to cache syntax positions in the file.
Current highlighting code was, for now, moved to common CSyntax class (derived from EditorSyntax). I expect to gradually remove non-curly-braces language from this common class, which at the end of process should represent C-like languages.
Mirek
|
|
|
Goto Forum:
Current Time: Fri Sep 20 06:30:03 CEST 2024
Total time taken to generate the page: 0.05182 seconds
|