question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax- and nvim highlighting of variables in format! macro

See original GitHub issue

Rust 1.58 introduced a new syntax, format!("Info: {variable:?}"). This isn’t syntax highlighted nor seen as a variable when highlighting / renaming the variable.

[coc.nvim] rust-analyzer bc08b8eff 2022-03-28 stable

vim version: NVIM v0.6.1 node version: v17.8.0 coc.nvim version: 0.0.80-12d84da5 2022-03-21 18:11:22 +0800 coc.nvim directory: /home/icelk/.local/share/nvim/plugged/coc.nvim term: xterm-kitty platform: linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fannheywardcommented, Apr 13, 2022

@Icelk for the highlighting issue, you can add rust to semanticTokens.filetypes in your coc-settings.json, this will use semantic highlighting.

0reactions
Icelkcommented, Apr 13, 2022

Thanks so much. The issue is resolved now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syntax - Neovim docs
Syntax highlighting enables Vim to show parts of the text in another font or color. Those parts can be specific keywords or text...
Read more >
neovim/syntax.txt at master · neovim/neovim - GitHub
Syntax highlighting enables Vim to show parts of the text in another font or ... colors of their contents (e.g. PPWizard macros and...
Read more >
VIM - Syntax classes and colorscheme - Stack Overflow
Syntax highlighting is done in two steps: highlight groups are defined with regular expressions in a "syntax script" and often linked to ...
Read more >
syntax highlighting - net
Syntax highlighting allows text of specific file types to be color coded for readability. ... Where the "Type" format is already defined in...
Read more >
Vim Syntax Highlighting - Linux Hint
Syntax highlighting is on for vim editor by default. The content of login.sh will be displayed with the following format when the syntax...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found