diff --git a/src/scadlexer.cpp b/src/scadlexer.cpp index 8eab9651..ff774dff 100644 --- a/src/scadlexer.cpp +++ b/src/scadlexer.cpp @@ -1,7 +1,7 @@ #include "scadlexer.h" ScadLexer::ScadLexer(QObject *parent) - : QsciLexerCPP(parent) + : QsciLexerCPP(parent) { } ScadLexer::~ScadLexer() @@ -9,32 +9,30 @@ ScadLexer::~ScadLexer() const char *ScadLexer::language() const { - return "SCAD"; + return "SCAD"; } const char *ScadLexer::keywords(int set) const { - if (set == 1) - return "if else for module function intersection_for assign echo search " - " str let true false "; // -> Style: Keyword + if (set == 1) + return "if else for module function intersection_for assign echo search " + " str let true false "; // -> Style: Keyword - if (set == 2) - return " abs sign acos asin atan atan2 sin cos tan floor round ceil len ln " - " log lookup min max pow sqrt exp rands version version_num " - " group difference union intersection render translate rotate scale multmatrix color " - " projection hull resize mirror minkowski glide subdiv child " - " include use dxf_dim dxf_cross " - " linear_extrude rotate_extrude "; // -> Style: KeywordSet2 + if (set == 2) + return " abs sign acos asin atan atan2 sin cos tan floor round ceil len ln " + " log lookup min max pow sqrt exp rands version version_num " + " group difference union intersection render translate rotate scale multmatrix color " + " projection hull resize mirror minkowski glide subdiv child " + " include use dxf_dim dxf_cross " + " linear_extrude rotate_extrude "; // -> Style: KeywordSet2 - if (set == 3) - return " param author "; // -> used in comments only like /*! \cube */ + if (set == 3) + return " param author "; // -> used in comments only like /*! \cube */ - if (set == 4) - return "cube circle cylinder polygon polyhedron square sphere " - "surface import "; // -> Style: GlobalClass + if (set == 4) + return "cube circle cylinder polygon polyhedron square sphere " + "surface import "; // -> Style: GlobalClass - return 0; + return 0; } - - diff --git a/src/scadlexer.h b/src/scadlexer.h index 328c17ee..50e6347a 100644 --- a/src/scadlexer.h +++ b/src/scadlexer.h @@ -8,13 +8,12 @@ class ScadLexer : public QsciLexerCPP { public: - ScadLexer(QObject *parent); - virtual ~ScadLexer(); - const char *language() const; - const char *keywords(int set) const; + ScadLexer(QObject *parent); + virtual ~ScadLexer(); + const char *language() const; + const char *keywords(int set) const; private: - ScadLexer(const ScadLexer &); - ScadLexer &operator=(const ScadLexer &); - + ScadLexer(const ScadLexer &); + ScadLexer &operator=(const ScadLexer &); };