2014-08-23 08:57:22 +04:00
|
|
|
#pragma once
|
2014-06-17 19:34:54 +04:00
|
|
|
|
|
|
|
#include <qobject.h>
|
|
|
|
|
2014-06-19 21:23:00 +04:00
|
|
|
#include <Qsci/qsciglobal.h>
|
2014-06-17 19:34:54 +04:00
|
|
|
#include <Qsci/qscilexercpp.h>
|
|
|
|
|
|
|
|
class ScadLexer : public QsciLexerCPP
|
|
|
|
{
|
|
|
|
public:
|
2014-08-23 08:57:57 +04:00
|
|
|
ScadLexer(QObject *parent);
|
|
|
|
virtual ~ScadLexer();
|
|
|
|
const char *language() const;
|
|
|
|
const char *keywords(int set) const;
|
2014-12-20 19:27:18 +03:00
|
|
|
|
|
|
|
void setKeywords(int set, const std::string& keywords);
|
2014-06-19 21:23:00 +04:00
|
|
|
private:
|
2014-12-20 19:27:18 +03:00
|
|
|
std::string keywordSet[4];
|
2014-08-23 08:57:57 +04:00
|
|
|
ScadLexer(const ScadLexer &);
|
|
|
|
ScadLexer &operator=(const ScadLexer &);
|
2014-06-17 19:34:54 +04:00
|
|
|
};
|