You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easy way to reproduce this with existing packages:
Install the MarkdownEditing mode
Create a new buffer in "Markdown (GFM)" mode
Create a scala-fenced code block
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.
The text was updated successfully, but these errors were encountered:
Easy way to reproduce this with existing packages:
//
) within the blockThe 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.The text was updated successfully, but these errors were encountered: