ultimatepp/uppsrc/CodeEditor/DiffSyntax.h
cxl d72375c5c3 ide: Diff files highlighting (thanks Klugier) #835
git-svn-id: svn://ultimatepp.org/upp/trunk@7650 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2014-09-08 09:45:10 +00:00

18 lines
583 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;
};