mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
55 lines
1,021 B
C++
55 lines
1,021 B
C++
#include "CodeEditor.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
void EditorSyntax::Clear()
|
|
{
|
|
}
|
|
|
|
void EditorSyntax::ScanSyntax(const wchar *ln, const wchar *e, int line, int tab_size)
|
|
{
|
|
}
|
|
|
|
void EditorSyntax::Serialize(Stream& s)
|
|
{
|
|
}
|
|
|
|
void EditorSyntax::IndentInsert(CodeEditor& editor, int chr, int count)
|
|
{
|
|
editor.InsertChar(chr, count);
|
|
}
|
|
|
|
bool EditorSyntax::CheckBrackets(CodeEditor& e, int& bpos0, int& bpos)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool EditorSyntax::CanAssist() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void EditorSyntax::Highlight(CodeEditor& editor, int line, Vector<LineEdit::Highlight>& hl, int pos)
|
|
{
|
|
}
|
|
|
|
Vector<IfState> EditorSyntax::PickIfStack()
|
|
{
|
|
return Vector<IfState>();
|
|
}
|
|
|
|
Color EditorSyntax::IfColor(char c)
|
|
{
|
|
switch(c){
|
|
case IfState::IF: return LtBlue();
|
|
case IfState::ELIF: return Gray();
|
|
case IfState::ELSE: return Green();
|
|
case IfState::ELSE_ERROR: return LtRed();
|
|
case IfState::ENDIF_ERROR: return LtMagenta();
|
|
default: return Null;
|
|
}
|
|
}
|
|
|
|
EditorSyntax::~EditorSyntax() {}
|
|
|
|
END_UPP_NAMESPACE
|