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

syntax: gotexttmpl identifier and string highlighting broken #777

Closed
moorereason opened this issue Mar 26, 2016 · 0 comments
Closed

syntax: gotexttmpl identifier and string highlighting broken #777

moorereason opened this issue Mar 26, 2016 · 0 comments

Comments

@moorereason
Copy link
Contributor

Actual behavior

Given the following Go HTML template:

{{ if eq .Site.Data.Level "premier" }}
<p class="special">
{{ end }}

Two issues arise:

  1. .Site.Data.Level is not highlighted as an Identifier
  2. The string " }}\n<p class=" is highlighted as a string. The first " on the first line is ignored.

Expected behavior

  1. I expect .Site.Data.Level to be highlighted as an Identifier.
  2. I expect "premier" to be highlighted as a String.

Steps to reproduce:

  1. Create an HTML template with the above content.
  2. Enable syntax highlighting.

Configuration

  • nvim 0.1.3-dev (from ubuntu PPA)
  • vim-go commit fc682ce

Fix

I'll submit a PR shortly with a proposed fix.

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

1 participant