From 9a4c38cb4ebf033ec8e489f2be79dd7bbedb8377 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 29 Nov 2003 09:44:45 +0000 Subject: Patch from Kaspar Schiess to handle $' as not starting a string. --- src/LexRuby.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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; -- cgit v1.2.3