forked from eranif/codelite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContextPython.hpp
More file actions
30 lines (24 loc) · 758 Bytes
/
ContextPython.hpp
File metadata and controls
30 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef CONTEXTPYTHON_HPP
#define CONTEXTPYTHON_HPP
#include "generic_context.h"
class ContextPython : public ContextGeneric
{
protected:
bool m_eventsBound = false;
protected:
bool IsComment(int pos) const;
bool IsCommentBlock(int pos) const;
protected:
void OnCommentSelection(wxCommandEvent& event);
void OnCommentLine(wxCommandEvent& event);
void AutoIndent(const wxChar& ch) override;
public:
ContextPython();
explicit ContextPython(clEditor* container);
~ContextPython() override;
void ApplySettings() override;
std::shared_ptr<ContextBase> NewInstance(clEditor* container) override;
bool IsAtBlockComment() const override;
bool IsAtLineComment() const override;
};
#endif // CONTEXTPYTHON_HPP