summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpreviewscript.cpp')
-rwxr-xr-xindra/newview/llpreviewscript.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 2e9907fcd2..62e1d765b3 100755
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -406,7 +406,15 @@ BOOL LLScriptEdCore::postBuild()
initMenu();
- mEditor->mKeywords.initialise();
+// Make this work ;-)
+ mSyntaxLSL = LLSyntaxIdLSL();
+
+// mSyntaxLSL.initialise();
+// mSyntaxLSL.mKeywords = &mEditor->mKeywords;
+ // ...
+// mSyntaxLSL->mKeywords.initialise();
+// Move into the SyntaxIdLSL class
+ mEditor->mKeywords.initialise(mSyntaxLSL.filenamePath(), mSyntaxLSL.filenameCurrent());
// FIX: Refactor LLTextEditor::loadKeywords so these can be removed.
std::vector<std::string> funcs;