We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following Go HTML template:
{{ if eq .Site.Data.Level "premier" }} <p class="special"> {{ end }}
Two issues arise:
.Site.Data.Level
" }}\n<p class="
"
"premier"
I'll submit a PR shortly with a proposed fix.
The text was updated successfully, but these errors were encountered:
syntax: Fix gotexttmpl identifier highlighting
47f8f21
Fixes fatih#777
No branches or pull requests
Actual behavior
Given the following Go HTML template:
Two issues arise:
.Site.Data.Level
is not highlighted as an Identifier" }}\n<p class="
is highlighted as a string. The first"
on the first line is ignored.Expected behavior
.Site.Data.Level
to be highlighted as an Identifier."premier"
to be highlighted as a String.Steps to reproduce:
Configuration
Fix
I'll submit a PR shortly with a proposed fix.
The text was updated successfully, but these errors were encountered: