summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/parsers/parse_rb.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb
index 4c10bc4461..f127d8462e 100644
--- a/lib/rdoc/parsers/parse_rb.rb
+++ b/lib/rdoc/parsers/parse_rb.rb
@@ -2267,6 +2267,8 @@ module RDoc
tk.text.sub(/^:/, '')
when TkId, TkOp
tk.name
+ when TkSTRING
+ tk.text
else
raise "Name or symbol expected (got #{tk})"
end