diff options
author | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 |
commit | 2a25b067f78f395392499ac9f19a8028d847d07e (patch) | |
tree | 045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexRuby.cxx | |
parent | 0b5372d287924ae28c2b869f6edf2c03035872c8 (diff) | |
download | scintilla-mirror-2a25b067f78f395392499ac9f19a8028d847d07e.tar.gz |
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexRuby.cxx')
-rw-r--r-- | src/LexRuby.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx index 35804e710..43a874968 100644 --- a/src/LexRuby.cxx +++ b/src/LexRuby.cxx @@ -221,7 +221,7 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, } else if (isoperator(ch)) { styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_P_OPERATOR); - } + } } else if (state == SCE_P_WORD) { if (!iswordchar(ch)) { ClassifyWordRb(styler.GetStartSegment(), i - 1, keywords, styler, prevWord); @@ -351,5 +351,10 @@ static void FoldRbDoc(unsigned int startPos, int length, int initStyle, } } } - -LexerModule lmRuby(SCLEX_RUBY, ColouriseRbDoc, "ruby", FoldRbDoc); + +static const char * const rubyWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmRuby(SCLEX_RUBY, ColouriseRbDoc, "ruby", FoldRbDoc, rubyWordListDesc); |