Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Alternate header syntax fails in Rocco #15

Closed
mikewest opened this issue Oct 14, 2010 · 1 comment
Closed

Alternate header syntax fails in Rocco #15

mikewest opened this issue Oct 14, 2010 · 1 comment

Comments

@mikewest
Copy link
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
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants