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

Interpolation escaping #11

Closed
nicknovitski opened this issue Apr 3, 2017 · 5 comments
Closed

Interpolation escaping #11

nicknovitski opened this issue Apr 3, 2017 · 5 comments

Comments

@nicknovitski
Copy link

@nicknovitski nicknovitski commented Apr 3, 2017

While working on a nix expression containing a multi-line string which contains a bash script which outputs a nix expression which contains single-line strings which have interpolations (phew!), I noticed that interpolations are always highlighted, even when they've been escaped.

{
  singleline = "${shouldBeHighlighted}\${shouldNotBe}";
  multiline = ''
    ${shouldBeHighlighted}
    ''${shouldNotBe}
  '';
}
@LnL7
Copy link
Owner

@LnL7 LnL7 commented Apr 3, 2017

Either I'm not understanding the issue correctly or the plugin is not getting loaded correctly (I've had this issue with vim_configurable before). The example looks fine good to me.

screen shot 2017-04-03 at 20 33 41

@nicknovitski
Copy link
Author

@nicknovitski nicknovitski commented Apr 3, 2017

Hmmmm! That is quite unsettling. I am using vim_configurable. I'll look into the problem.

Thanks for your efforts. :)

@nicknovitski
Copy link
Author

@nicknovitski nicknovitski commented Apr 3, 2017

Wow, you're totally right, I've been working with fake syntax highlighting this whole time.

It's very strange: my installations of elm-vim and rust.vim are not subject to the same problem, but I can't figure out what's different about them.

@LnL7
Copy link
Owner

@LnL7 LnL7 commented Apr 3, 2017

vim_configurable includes some minimal syntax highlighting for nix by default. That seems to cause conflicts in some cases, but I'm still not sure when this happens.

@nicknovitski
Copy link
Author

@nicknovitski nicknovitski commented Apr 3, 2017

Wooooah so it applies this patch before loading any other plugins? That sure seems like it could cause a conflict.

And indeed, if I set vim.ftNix = false; in my ~/.nixpkgs/config.nix, then recompile vim without that "patch," then I actually get to see your plugin! Good grief! It's perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.