Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
b06e63ac
Commit
b06e63ac
authored
10 years ago
by
Cinder
Browse files
Options
Downloads
Patches
Plain Diff
Fix lsl constant highlighting and sort the if-else chain to parse a little quicker
parent
6a6508f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llui/llkeywords.cpp
+18
-12
18 additions, 12 deletions
indra/llui/llkeywords.cpp
with
18 additions
and
12 deletions
indra/llui/llkeywords.cpp
+
18
−
12
View file @
b06e63ac
...
@@ -173,37 +173,43 @@ std::string LLKeywords::getAttribute(const std::string& key)
...
@@ -173,37 +173,43 @@ std::string LLKeywords::getAttribute(const std::string& key)
LLColor4
LLKeywords
::
getColorGroup
(
const
std
::
string
&
key_in
)
LLColor4
LLKeywords
::
getColorGroup
(
const
std
::
string
&
key_in
)
{
{
std
::
string
color_group
=
"ScriptText"
;
std
::
string
color_group
=
"ScriptText"
;
if
(
key_in
==
"
constant
s"
)
if
(
key_in
==
"
function
s"
)
{
{
color_group
=
"SyntaxLsl
Constant
"
;
color_group
=
"SyntaxLsl
Function
"
;
}
}
else
if
(
key_in
==
"controls"
)
else
if
(
key_in
==
"controls"
)
{
{
color_group
=
"SyntaxLslControlFlow"
;
color_group
=
"SyntaxLslControlFlow"
;
}
}
else
if
(
key_in
==
"
misc-flow-label
"
)
else
if
(
key_in
==
"
events
"
)
{
{
color_group
=
"SyntaxLsl
ControlFlow
"
;
color_group
=
"SyntaxLsl
Event
"
;
}
}
else
if
(
key_in
==
"deprecated
"
)
else
if
(
key_in
==
"types
"
)
{
{
color_group
=
"SyntaxLslD
eprecated
"
;
color_group
=
"SyntaxLslD
ataType
"
;
}
}
else
if
(
key_in
==
"
events
"
)
else
if
(
key_in
==
"
misc-flow-label
"
)
{
{
color_group
=
"SyntaxLsl
Event
"
;
color_group
=
"SyntaxLsl
ControlFlow
"
;
}
}
else
if
(
key_in
==
"functions
"
)
else
if
(
key_in
==
"deprecated
"
)
{
{
color_group
=
"SyntaxLsl
Function
"
;
color_group
=
"SyntaxLsl
Deprecated
"
;
}
}
else
if
(
key_in
==
"god-mode"
)
else
if
(
key_in
==
"god-mode"
)
{
{
color_group
=
"SyntaxLslGodMode"
;
color_group
=
"SyntaxLslGodMode"
;
}
}
else
if
(
key_in
==
"types"
)
else
if
(
key_in
==
"constants"
||
key_in
==
"constants-integer"
||
key_in
==
"constants-float"
||
key_in
==
"constants-string"
||
key_in
==
"constants-key"
||
key_in
==
"constants-rotation"
||
key_in
==
"constants-vector"
)
{
{
color_group
=
"SyntaxLsl
DataType
"
;
color_group
=
"SyntaxLsl
Constant
"
;
}
}
else
else
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment