-
Notifications
You must be signed in to change notification settings - Fork 6
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
EPP files do not appear to tokenise correctly #68
Comments
Hrmm actually, the EPP syntax highlighter is very broken :-( |
This is not a function tokenising problem. The EPP language uses the same syntax file, but the puppet code is only valid within certain types of tokens e.g. This will need a new syntax file for EPP files. |
@llowder Note in the example above the syntax highlighting is breaking because that is not valid Puppet code. Functions MUST have a return type (and should be namespaced) Ref - https://puppet.com/docs/puppet/latest/lang_write_functions_in_puppet.html#syntax-of-functions
|
Originally logged by @llowder in #66
Describe the Bug
In an epp file, specifically in a templated shell script, comment highlighting breaks inside function blocks.
Ref - https://www.dropbox.com/s/jvn5aif7qd4s4it/vscode_puppet_epp_highlight.png?dl=0
Expected Behavior
Functions should tokenise like a node or class statement
Steps to Reproduce
Environment
Additional Context
The text was updated successfully, but these errors were encountered: