Alternate header syntax fails in Rocco #15

mikewest opened this Issue Oct 14, 2010 · 1 comment


None yet
2 participants

mikewest commented Oct 14, 2010

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 ="^\\s*#{@options[:comment_chars]}\s?")

Solves the problem for me. You'll have a pull request in a moment.


rtomayko commented Oct 19, 2010

Yet another issue fixed in recent pull request.

Hmmm. Maybe you ought to be able to push :)

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment