aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-11-29 09:44:45 +0000
committernyamatongwe <unknown>2003-11-29 09:44:45 +0000
commit84422bebf3f9971c1e305214d968eb0c304c035a (patch)
tree09297a0de03c2596cdb6943aaf87aaaee2441f26 /src
parent52ebe67272a533fcc64c9fa59d8a69f309c5e000 (diff)
downloadscintilla-mirror-84422bebf3f9971c1e305214d968eb0c304c035a.tar.gz
Patch from Kaspar Schiess to handle $' as not starting a string.
Diffstat (limited to 'src')
-rw-r--r--src/LexRuby.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/LexRuby.cxx b/src/LexRuby.cxx
index 43a874968..692a47ade 100644
--- a/src/LexRuby.cxx
+++ b/src/LexRuby.cxx
@@ -96,6 +96,11 @@ static int GetRbStringState(Accessor &styler, int i, int *nextIndex) {
return SCE_P_DEFAULT;
}
+ if (i>0 && styler.SafeGetCharAt(i-1) == '$') {
+ *nextIndex = i + 1;
+ return SCE_P_DEFAULT;
+ }
+
if (ch == chNext && ch == styler.SafeGetCharAt(i + 2)) {
*nextIndex = i + 3;