- enhancement: auto complete '#undef'

This commit is contained in:
Roy Qu 2022-05-11 20:34:13 +08:00
parent 4bd6c4dd39
commit 631da69d84
5 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Red Panda C++ Version 1.0.8
- enhancement: auto complete '#undef'
Red Panda C++ Version 1.0.7
- change: use Shift+Enter to break line
- change: highlight whole #define statement using one color

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
}
isEmpty(APP_VERSION) {
APP_VERSION=1.0.7
APP_VERSION=1.0.8
}

View File

@ -294,6 +294,7 @@ void initParser()
CppDirectives.append("#error");
CppDirectives.append("#pragma");
CppDirectives.append("#line");
CppDirectives.append("#undef");
// javadoc tags
JavadocTags.append("@author");

View File

@ -18,6 +18,7 @@
#include "../mainwindow.h"
#include "../editor.h"
#include "../editorlist.h"
#include <QDebug>
CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(parent)
{
@ -27,6 +28,7 @@ CodeCompletionListView::CodeCompletionListView(QWidget *parent) : QListView(pare
void CodeCompletionListView::keyPressEvent(QKeyEvent *event)
{
if (event->key() == Qt::Key_Up
|| event->key() == Qt::Key_Down
|| event->key() == Qt::Key_PageDown

View File

@ -17,7 +17,7 @@ SUBDIRS += \
APP_NAME = RedPandaCPP
APP_VERSION = 1.0.7
APP_VERSION = 1.0.8
linux: {