aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/ruby_token.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 07:31:36 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 07:31:36 +0000
commit2e881bd59e12cb33e868be93af34cb1e2d5475d1 (patch)
treec611d13eff9582d3268a9df837119f5d682d2b66 /lib/rdoc/ruby_token.rb
parent84e3e8441cdc0dd4121e06f0ff4c31e0f4637247 (diff)
downloadruby-2e881bd59e12cb33e868be93af34cb1e2d5475d1.tar.gz
* lib/rdoc/ruby_lex.rb: Return a TkHEREDOC instead of a TkSTRING when
the heredoc identifier is followed by a line-end. This allows proper display of some HEREDOCs in source view. * lib/rdoc/ruby_token.rb: Added TkHEREDOC * test/rdoc/test_rdoc_ruby_lex.rb: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ruby_token.rb')
-rw-r--r--lib/rdoc/ruby_token.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rdoc/ruby_token.rb b/lib/rdoc/ruby_token.rb
index 571ea70404..7878e4c22a 100644
--- a/lib/rdoc/ruby_token.rb
+++ b/lib/rdoc/ruby_token.rb
@@ -331,6 +331,7 @@ module RDoc::RubyToken
[:TkINTEGER, TkVal],
[:TkFLOAT, TkVal],
[:TkSTRING, TkVal],
+ [:TkHEREDOC, TkVal],
[:TkXSTRING, TkVal],
[:TkREGEXP, TkVal],
[:TkSYMBOL, TkVal],