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:
parent
4364f427bf
commit
37e8882a3c
11 changed files with 311 additions and 72 deletions
|
|
@ -37,17 +37,17 @@ bool OpenDatabase::Init()
|
|||
return true;
|
||||
}
|
||||
|
||||
PgsqlDatabaseCatalogue* OpenDatabase::getCatalogue()
|
||||
PgsqlDatabaseCatalogue* OpenDatabase::catalogue()
|
||||
{
|
||||
return m_catalogue;
|
||||
}
|
||||
|
||||
|
||||
TypeSelectionItemModel* OpenDatabase::getTypeSelectionModel()
|
||||
TypeSelectionItemModel* OpenDatabase::typeSelectionModel()
|
||||
{
|
||||
if (m_typeSelectionModel == nullptr) {
|
||||
m_typeSelectionModel = new TypeSelectionItemModel(nullptr);
|
||||
m_typeSelectionModel->setTypeList(m_catalogue->getTypes());
|
||||
m_typeSelectionModel->setTypeList(m_catalogue->types());
|
||||
}
|
||||
return m_typeSelectionModel;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue