diff options
author | nyamatongwe <unknown> | 2003-11-29 09:44:45 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-11-29 09:44:45 +0000 |
commit | 84422bebf3f9971c1e305214d968eb0c304c035a (patch) | |
tree | 09297a0de03c2596cdb6943aaf87aaaee2441f26 | |
parent | 52ebe67272a533fcc64c9fa59d8a69f309c5e000 (diff) | |
download | scintilla-mirror-84422bebf3f9971c1e305214d968eb0c304c035a.tar.gz |
Patch from Kaspar Schiess to handle $' as not starting a string.
-rw-r--r-- | src/LexRuby.cxx | 5 |
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; |