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

Prototype section not included at the root in embedded mode #620

Closed
djspiewak opened this issue Sep 16, 2016 · 2 comments
Closed

Prototype section not included at the root in embedded mode #620

djspiewak opened this issue Sep 16, 2016 · 2 comments

Comments

@djspiewak
Copy link
Contributor

Easy way to reproduce this with existing packages:

  1. Install the MarkdownEditing mode
  2. Create a new buffer in "Markdown (GFM)" mode
  3. Create a scala-fenced code block
  4. Enter a line comment (starts with //) within the block

The line comment will not be highlighted as a comment, and Scala constructs within the line (e.g. keywords) will be highlighted. However, if you get Sublime to push a nested context onto the stack – for example, by opening a {} block – the comments will work within the block (though still not before or after).

I think what's happening is the prototype section, which is what the Scala mode now uses for comments, is not being included in the root context of an embedded mode, but is being included for nested contexts.

@FichteFoll
Copy link
Collaborator

@djspiewak
Copy link
Contributor Author

@FichteFoll Nice. Closing mine as duplicate.

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

2 participants