aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexRuby.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-02-17 11:18:11 +0000
committernyamatongwe <unknown>2003-02-17 11:18:11 +0000
commitbb028fe06a4e642aa20f72136c2deaf312ba61b9 (patch)
tree045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexRuby.cxx
parentd9b3f2fe99e4bb7fb6649eee27382f25f20a4146 (diff)
downloadscintilla-mirror-bb028fe06a4e642aa20f72136c2deaf312ba61b9.tar.gz
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexRuby.cxx')
-rw-r--r--src/LexRuby.cxx11
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);