summaryrefslogtreecommitdiff
path: root/indra/newview/llscripteditor.h
diff options
context:
space:
mode:
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;
};