aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/parser
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-18 21:10:47 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-18 21:10:47 +0000
commit71b4ecb3d3068c23809983e1ce556056c0d2172a (patch)
tree7a09f8601e7fb8b85452fc7a85c46c524a3a609f /lib/rdoc/parser
parentdbd68031e02e0933601d6f247581aeb2d08766e5 (diff)
downloadruby-71b4ecb3d3068c23809983e1ce556056c0d2172a.tar.gz
Import RDoc r104. Various test fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parser')
-rw-r--r--lib/rdoc/parser/ruby.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb
index e00d727f9e..26757256ad 100644
--- a/lib/rdoc/parser/ruby.rb
+++ b/lib/rdoc/parser/ruby.rb
@@ -540,8 +540,10 @@ class RDoc::RubyLex
begin
tk = @OP.match(self)
@space_seen = TkSPACE === tk
- rescue SyntaxError
- abort if @exception_on_syntax_error
+ rescue SyntaxError => e
+ raise RDoc::Error, "syntax error: #{e.message}" if
+ @exception_on_syntax_error
+
tk = TkError.new(line_no, char_no)
end
end while @skip_space and TkSPACE === tk