-
Notifications
You must be signed in to change notification settings - Fork 286
(feature request) Heredoc Slim support (or a way to add custom heredoc syntaxes) #274
Comments
Hmm, I will look into this. This also raises a larger question as to whether we should be directly supporting HAML or Slim or leaving that to other extensions. |
That's why I suggested the customization options. Simply set a matcher and the syntax key. The highlighting itself would be handled by VS Code or the appropriate extension. I'm pretty sure this is how it works already (looking at vscode-ruby/syntaxes/ruby.cson.json Line 1558 in 72ae6af
|
Except the syntax is loaded at extension load time and I've not yet found a way to modify the syntax via runtime configuration options |
I see. Is there no way to reload the extension upon changes in PS: This is why I thought just adding a "Heredoc with embedded Slim" syntax would be easier. |
Reloading the extension wouldn't do anything. VSCode loads the grammar based on the stuff in I also don't want to be doing one-off edits to the grammar just to support specific uses cases. For instance, there's nothing that requires you to use |
Environment
vscode-ruby
version: 0.16.0Expected behavior
Color Slim heredocs syntax the same way it works with HTML
Actual behavior
Slim heredocs are colored as strings
Steps to reproduce the problem
Additional Notes
Perhaps the best approach would be to allow a setting for custom heredoc matching. Something like:
The text was updated successfully, but these errors were encountered: