Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment block is not working when the line has preceding whitespace #10

Open
koenpunt opened this issue Oct 23, 2016 · 1 comment
Open

Comments

@koenpunt
Copy link

So this works:

###
Some block comment
###
class ComposerExtension extends ContenteditableExtension

And this doesn't:

class ComposerExtension extends ContenteditableExtension
  ###
  Some block comment
  ###
  @sendActionConfig: ({draft}) ->

image

@koenpunt
Copy link
Author

I've found that changing the begin regex for punctuation.whitespace.comment.leading.coffee from (^[ \t]+)?(?=#) to (?=#) makes indented block comments to be highlighted as comments.
But I don't know what the side effects of this change are..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant