Skip to content
Snippets Groups Projects
Commit 78be5c3a authored by Cinder's avatar Cinder
Browse files

STORM-2026 - Use more unique syntax colors by default, also clean up some indentation

parent 41f6c5ce
No related branches found
No related tags found
No related merge requests found
...@@ -51,31 +51,31 @@ public: ...@@ -51,31 +51,31 @@ public:
const std::string& reason, const std::string& reason,
const LLSD& content) const LLSD& content)
{ {
LL_WARNS("SyntaxLSL") << "failed to fetch syntax file [status:" << status << "]: " << content << LL_ENDL; LL_WARNS("SyntaxLSL") << "failed to fetch syntax file [status:" << status << "]: " << content << LL_ENDL;
} }
virtual void result(const LLSD& content_ref) virtual void result(const LLSD& content_ref)
{ {
// Continue only if a valid LLSD object was returned. // Continue only if a valid LLSD object was returned.
if (content_ref.isMap()) if (content_ref.isMap())
{
if (LLSyntaxIdLSL::getInstance()->isSupportedVersion(content_ref))
{ {
LLSyntaxIdLSL::getInstance()->setKeywordsXml(content_ref); if (LLSyntaxIdLSL::getInstance()->isSupportedVersion(content_ref))
{
LLSyntaxIdLSL::getInstance()->setKeywordsXml(content_ref);
cacheFile(content_ref); cacheFile(content_ref);
LLSyntaxIdLSL::getInstance()->handleFileFetched(mFileSpec); LLSyntaxIdLSL::getInstance()->handleFileFetched(mFileSpec);
}
else
{
LL_WARNS("SyntaxLSL") << "Unknown or unsupported version of syntax file." << LL_ENDL;
}
} }
else else
{ {
LL_WARNS("SyntaxLSL") << "Unknown or unsupported version of syntax file." << LL_ENDL; LL_WARNS("SyntaxLSL") << "Syntax file '" << mFileSpec << "' contains invalid LLSD." << LL_ENDL;
} }
} }
else
{
LL_WARNS("SyntaxLSL") << "Syntax file '" << mFileSpec << "' contains invalid LLSD." << LL_ENDL;
}
}
void cacheFile(const LLSD& content_ref) void cacheFile(const LLSD& content_ref)
{ {
......
...@@ -917,32 +917,32 @@ ...@@ -917,32 +917,32 @@
reference="Black" /> reference="Black" />
<color <color
name="SyntaxLslComment" name="SyntaxLslComment"
value=".8 .3 .15 1.0" /> value="0 0.5 0 1" />
<color <color
name="SyntaxLslConstant" name="SyntaxLslConstant"
value=".3 .1 .5 1.0" /> value="0 0.6 0.6 1" />
<color <color
name="SyntaxLslControlFlow" name="SyntaxLslControlFlow"
value="0 0 .8 1.0" /> value="0.4 0 0.8 1" />
<color <color
name="SyntaxLslControlLabel" name="SyntaxLslControlLabel"
value="0 0 .8 1.0" /> value="0 0 0.8 1" />
<color <color
name="SyntaxLslDataType" name="SyntaxLslDataType"
value=".1 .3 .1 1.0" /> value="0.8 0.4 0 1" />
<color <color
name="SyntaxLslDeprecated" name="SyntaxLslDeprecated"
value="0.9 0.0 0.66, 1.0" /> value="0.9 0.0 0.66, 1" />
<color <color
name="SyntaxLslEvent" name="SyntaxLslEvent"
value="0 .3 .5 1.0" /> value="0 0.3 0.5 1" />
<color <color
name="SyntaxLslFunction" name="SyntaxLslFunction"
value=".3 0 .5 1.0" /> value="0.3 0 0.5 1" />
<color <color
name="SyntaxLslGodMode" name="SyntaxLslGodMode"
value="0.7 .2 .35 1.0" /> value="0.7 .2 .35 1" />
<color <color
name="SyntaxLslStringLiteral" name="SyntaxLslStringLiteral"
value="0 .2 0 1.0" /> value="1 0.14 0 1" />
</colors> </colors>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment