Rocco is Docco in Ruby
b9b69d98fb
The following works in Docco, but not in Rocco: Level 1 Heading =============== Level 2 Heading --------------- Happily, the fix is trivial. In Docco, the regex for comments is: # Does the line begin with a comment? l.comment_matcher = new RegExp('^\\s*' + l.symbol + '\\s?') Changing Rocco's comment pattern to: @comment_pattern = Regexp.new("^\\s*#{@options[:comment_chars]}\s?") Solves the problem for me. |
||
---|---|---|
bin | ||
lib | ||
COPYING | ||
Rakefile | ||
README | ||
rocco.gemspec |
___ ___ ___ ___ ___ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\:\__\ /:/\:\__\ /:/\:\__\ /:/\:\__\ /:/\:\__\ \;:::/ / \:\/:/ / \:\ \/__/ \:\ \/__/ \:\/:/ / |:\/__/ \::/ / \:\__\ \:\__\ \::/ / \|__| \/__/ \/__/ \/__/ \/__/ Rocco is a quick-and-dirty, literate-programming-style documentation generator for Ruby. See the Rocco generated docs for more information: <http://rtomayko.github.com/rocco/> Rocco is a port of, and borrows heavily from, Docco -- the original quick-and-dirty, hundred-line-long, literate-programming-style documentation generator in CoffeeScript: <http://jashkenas.github.com/docco/>