| 1 |
#ifndef __JUFFED_LEXER_MATLAB_H__ |
| 2 |
#define __JUFFED_LEXER_MATLAB_H__ |
| 3 |
|
| 4 |
#include <Qsci/qscilexer.h> |
| 5 |
|
| 6 |
class QsciLexerMatlab : public QsciLexer { |
| 7 |
Q_OBJECT |
| 8 |
public: |
| 9 |
enum { |
| 10 |
Default, |
| 11 |
Comment, |
| 12 |
Command, |
| 13 |
Number, |
| 14 |
Keyword, |
| 15 |
String, |
| 16 |
Operator, |
| 17 |
Identifier, |
| 18 |
DoubleQuotedString, |
| 19 |
}; |
| 20 |
|
| 21 |
QsciLexerMatlab(QObject *parent = 0); |
| 22 |
virtual ~QsciLexerMatlab() {} |
| 23 |
|
| 24 |
const char *language() const { return "Matlab"; } |
| 25 |
const char *lexer() const { return "matlab"; } |
| 26 |
|
| 27 |
const char *keywords(int set) const; |
| 28 |
QString description(int style) const; |
| 29 |
QColor defaultColor(int style) const; |
| 30 |
}; |
| 31 |
|
| 32 |
#endif |