Changeset View
Changeset View
Standalone View
Standalone View
src/backends/julia/juliahighlighter.h
Show All 36 Lines | 35 | public: | |||
---|---|---|---|---|---|
37 | * Constructs JuliaHighlighter | 37 | * Constructs JuliaHighlighter | ||
38 | * | 38 | * | ||
39 | * @param parent QObject parent | 39 | * @param parent QObject parent | ||
40 | */ | 40 | */ | ||
41 | explicit JuliaHighlighter(QObject *parent); | 41 | explicit JuliaHighlighter(QObject *parent); | ||
42 | ~JuliaHighlighter() override = default; | 42 | ~JuliaHighlighter() override = default; | ||
43 | 43 | | |||
44 | public Q_SLOTS: | 44 | public Q_SLOTS: | ||
45 | /** | 45 | void addUserVariable(const QStringList& variables); | ||
46 | * Call this to update highlighter to the current state of keywords storage | 46 | void removeUserVariable(const QStringList& variables); | ||
47 | */ | 47 | | ||
48 | void updateHighlight(); | 48 | void addUserFunctions(const QStringList functions); | ||
49 | void removeUserFunctions(const QStringList functions); | ||||
49 | 50 | | |||
50 | protected: | 51 | protected: | ||
51 | /** | 52 | /** | ||
52 | * @see Cantor::DefaultHighlighter::highlightBlock | 53 | * @see Cantor::DefaultHighlighter::highlightBlock | ||
53 | */ | 54 | */ | ||
54 | void highlightBlock(const QString &text) override; | 55 | void highlightBlock(const QString &text) override; | ||
55 | 56 | | |||
56 | /** | 57 | /** | ||
57 | * @see Cantor::DefaultHighlighter::nonSeparatingCharacters | 58 | * @see Cantor::DefaultHighlighter::nonSeparatingCharacters | ||
58 | */ | 59 | */ | ||
59 | QString nonSeparatingCharacters() const override; | 60 | QString nonSeparatingCharacters() const override; | ||
60 | }; | 61 | }; |