ultimatepp/uppsrc/CodeEditor/DiffSyntax.h
cxl 8d362909b4 ide: .log file highlighting
git-svn-id: svn://ultimatepp.org/upp/trunk@7774 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-10-13 14:38:58 +00:00

17 lines
581 B
C++

class DiffSyntax : public EditorSyntax {
public:
DiffSyntax();
virtual void Highlight(const wchar *start, const wchar *end, HighlightOutput& hls,
CodeEditor *editor, int line, int pos);
protected:
void Put(int ink, int n = 1, int paper = PAPER_NORMAL);
void Do(const wchar *s, const wchar *end, CodeEditor *editor, int line, int tabsize, int pos);
int FindTheNumberOfCharsToLineEnd(const wchar *current, const wchar *end) const;
bool IsPattern(const wchar *current, const wchar *end, String pattern) const;
private:
HighlightOutput *hout;
};