Browse Source

vslol: disable funky debug colouring in .lolfx files.

undefined
Sam Hocevar 11 years ago
parent
commit
68ae1dd35e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      tools/vslol/LolFxLanguageService.cs

+ 5
- 3
tools/vslol/LolFxLanguageService.cs View File

@@ -73,21 +73,23 @@ class LolFxLanguageService : LanguageService
while (m_offset < m_source.Length) while (m_offset < m_source.Length)
{ {
if (m_source[m_offset] == ' ' || m_source[m_offset] == '\t') if (m_source[m_offset] == ' ' || m_source[m_offset] == '\t')
{
{
++m_offset; ++m_offset;
continue; continue;
}
}


tokeninfo.StartIndex = m_offset; tokeninfo.StartIndex = m_offset;
tokeninfo.EndIndex = m_offset; tokeninfo.EndIndex = m_offset;
tokeninfo.Type = TokenType.Unknown; tokeninfo.Type = TokenType.Unknown;
switch (state % 4) switch (state % 4)
{
{
case 0: tokeninfo.Color = TokenColor.Number; break; case 0: tokeninfo.Color = TokenColor.Number; break;
case 1: tokeninfo.Color = TokenColor.Text; break; case 1: tokeninfo.Color = TokenColor.Text; break;
case 2: tokeninfo.Color = TokenColor.Keyword; break; case 2: tokeninfo.Color = TokenColor.Keyword; break;
case 3: tokeninfo.Color = TokenColor.Comment; break; case 3: tokeninfo.Color = TokenColor.Comment; break;
} }
// Disable this crap for now
tokeninfo.Color = TokenColor.Text;
++m_offset; ++m_offset;
++state; ++state;
return true; return true;


Loading…
Cancel
Save