coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
625 stars 92 forks source link

Misbehavior on block comments closed not on own line #228

Closed nmaggioni closed 5 years ago

nmaggioni commented 8 years ago

If a block comment (###) isn't closed on its own line, it seems that codo won't parse anything under it.

Non-working code - documentation is produced only for f1:

# Documentation for f1.
f1 = ->
    return

### Commented code than
spans across multiple lines ###

# Documentation for f2.
f2 = ->
    return

Working code - documentation is produced for both f1 and f2:

# Documentation for f1.
f1 = ->
    return

###
Commented code than
spans across multiple lines
###

# Documentation for f2.
f2 = ->
    return

It seems that the opening block comment doesn not influence the behavior, since this code works fine as well:

# Documentation for f1.
f1 = ->
    return

### Commented code than
spans across multiple lines
###

# Documentation for f2.
f2 = ->
    return