summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/cpp.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-12 16:04:45 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-12 16:04:45 +0200
commit69246fc8ed0344eae4dab35286813a00010a08cb (patch)
tree9c4faf0bcc2bb53e7955aff0b139492ea04dbe2e /lib/coderay/scanners/cpp.rb
parent34e823d709ce19a480dbd78e72e63ada0d3425fb (diff)
parent40bd2ef5d33d32c3b3987da1d115b717259819e4 (diff)
downloadcoderay-69246fc8ed0344eae4dab35286813a00010a08cb.tar.gz
Merge branch 'master' into lua-scanner
Conflicts: lib/coderay/token_kinds.rb
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