Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Alternate header syntax fails in Rocco #15

Closed
mikewest opened this Issue · 1 comment

2 participants

@mikewest
Collaborator

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. You'll have a pull request in a moment.

@rtomayko
Owner

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
Something went wrong with that request. Please try again.