summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditor.h
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2025-02-25 19:08:01 +0200
committerGitHub <noreply@github.com>2025-02-25 19:08:01 +0200
commit0aaf2e446f34b951a970474a68131d575606909c (patch)
tree460f042d65824849c786d3dbd69722a07083d6da /indra/newview/llscripteditor.h
parentbf8a9e8bd28eb7409da0df1fe2996e8c8b8dc7d4 (diff)
parent0cc0db81afec26842ea9887aa50afb072d13914c (diff)
Merge pull request #3609 from secondlife/marchcat/lua_editor
Lua editor: syntax highlighting improvements
Diffstat (limited to 'indra/newview/llscripteditor.h')
-rw-r--r--indra/newview/llscripteditor.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/llscripteditor.h b/indra/newview/llscripteditor.h
index 1632ebe834..ad61405917 100644
--- a/indra/newview/llscripteditor.h
+++ b/indra/newview/llscripteditor.h
@@ -47,11 +47,13 @@ public:
virtual void draw();
bool postBuild();
- void initKeywords();
+ void initKeywords(bool luau_language = false);
void loadKeywords();
/* virtual */ void clearSegments();
- LLKeywords::keyword_iterator_t keywordsBegin() { return mKeywords.begin(); }
- LLKeywords::keyword_iterator_t keywordsEnd() { return mKeywords.end(); }
+ LLKeywords::keyword_iterator_t keywordsBegin();
+ LLKeywords::keyword_iterator_t keywordsEnd();
+ LLKeywords& getKeywords();
+ bool getIsLuauLanguage() { return mLuauLanguage; }
static std::string getScriptFontSize();
LLFontGL* getScriptFont();
@@ -68,7 +70,10 @@ private:
void loadKeywords(const std::string& filename_keywords,
const std::string& filename_colors);
- LLKeywords mKeywords;
+ LLKeywords mKeywordsLua;
+ LLKeywords mKeywordsLSL;
+ bool mLuauLanguage;
+
bool mShowLineNumbers;
bool mUseDefaultFontSize;
};