summaryrefslogtreecommitdiff
path: root/lib/coderay/scanner.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-10-15 09:08:50 +0000
committermurphy <murphy@rubychan.de>2006-10-15 09:08:50 +0000
commite5088ab940621155554a2e9455b57614c6ff015b (patch)
tree2ff719674a7855c0de5153a0bc353058cb33df62 /lib/coderay/scanner.rb
parent8f4daba117e5b3faf2d4678a3444c05ad946991e (diff)
downloadcoderay-e5088ab940621155554a2e9455b57614c6ff015b.tar.gz
Tests:
- improved coderay_suite.rb (random and shuffled tests, max parameter, scannerlang->lang, sorted test cases...) - changed html output extension to .actual.html to svn:ignore them - fixed some tests (deleted $Id$ etc.) - made XHTML testcase work Scanners: - fixed HTML, Delphi and Nitro scanners thanks to new tests Engine: - Tokens#fix and #fix! added (yet to be tested) - improved Scanner#raise_inspect a bit Converted more files to UNIX format (go away, stinkin' \r!)
Diffstat (limited to 'lib/coderay/scanner.rb')
-rw-r--r--lib/coderay/scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanner.rb b/lib/coderay/scanner.rb
index 83f73f2..62327c7 100644
--- a/lib/coderay/scanner.rb
+++ b/lib/coderay/scanner.rb
@@ -191,7 +191,7 @@ module CodeRay
end
# Scanner error with additional status information
- def raise_inspect msg, tokens, state = nil, ambit = 30
+ def raise_inspect msg, tokens, state = 'No state given!', ambit = 30
raise ScanError, <<-EOE % [