summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/cpp.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-03-11 02:27:17 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-03-11 02:27:17 +0100
commit1cdf0e17af6c280dc12130a9200d8196b056bbe9 (patch)
tree4adbd7d4106dd98a1973834dbb5ff25e9068ce19 /lib/coderay/scanners/cpp.rb
parente18ebab2c3419675212ccf6e2dec70497bee2b7f (diff)
downloadcoderay-1cdf0e17af6c280dc12130a9200d8196b056bbe9.tar.gz
minor tweaks to generator and scanner edge cases
Diffstat (limited to 'lib/coderay/scanners/cpp.rb')
-rw-r--r--lib/coderay/scanners/cpp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/cpp.rb b/lib/coderay/scanners/cpp.rb
index 9da62f4..e61f56f 100644
--- a/lib/coderay/scanners/cpp.rb
+++ b/lib/coderay/scanners/cpp.rb
@@ -160,7 +160,7 @@ module Scanners
encoder.text_token match, :char
elsif match = scan(/ \\ | $ /x)
encoder.end_group :string
- encoder.text_token match, :error
+ encoder.text_token match, :error unless match.empty?
state = :initial
label_expected = false
else