New syntax highlighter not complete.

- Supports comments
- more efficient as it scans the text block instead of repeatedly searching throught the whole block
- type matching based on catalog (but need to add aliases manually)
- added many keywords

todo:
- heap corruption bug
- symbol stops at special char like parenthese or operator or something similar.
This commit is contained in:
Eelke Klein 2017-02-07 21:39:45 +01:00
parent 4364f427bf
commit 37e8882a3c
11 changed files with 311 additions and 72 deletions

View file

@ -23,7 +23,7 @@ public:
void loadAll(Pgsql::Connection &conn);
void loadTypes(Pgsql::Connection &conn);
const PgTypeContainer* getTypes() const { return m_types; }
const PgTypeContainer* types() const { return m_types; }
private:
PgTypeContainer *m_types = nullptr;
};