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 highlighting issue - variable highlighting is inconsistent

See original GitHub issue

Your environment

  • vscode-ruby version: 0.18.0
  • Ruby version: 2.5.1p57
  • VS Code version: 1.23.1
  • Operating System: MacOS 10.13.4
  • Hardware (optional):

Make sure you have ruby, ruby-debug-ide and ruby-debug-basex19 installed before submitting your issue – thank you !

Expected behavior

Variable syntax highlighting should be consistent. It works properly with parenthesis around the statement.

screen shot 2018-05-31 at 3 29 34 pm

Actual behavior

When parentheses are removed, some variables aren’t recognized.

screen shot 2018-05-31 at 3 29 24 pm

screen shot 2018-05-31 at 3 29 16 pm

Steps to reproduce the problem

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
jeremiahkellickcommented, Jul 11, 2018

Could we get an option to disable variable highlighting? I would rather have none of my variables highlighted for the sake of consistent color.

0reactions
github-actions[bot]commented, Aug 16, 2020

This issue has not had activity for 30 days. It will be automatically closed in 7 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c++ syntax highlighting/colouring broken
The syntax highlighting feature of the C++ text editor works sporadically at best, ... Variables under the caret are sometimes highlighted, but usually...
Read more >
syntax highlighting broken in xcode 11? - Apple Developer
Yes, syntax highlighting is badly broken in Xcode 11. Randomly code is not or wrongly highlighted. It does not help you but it...
Read more >
highlight.js
#!/bin/bash ###### CONFIG ACCEPTED_HOSTS="/root/.hag_accepted.conf" BE_VERBOSE=false if [ "$UID" -ne 0 ] then echo "Superuser rights required" exit 2 fi ...
Read more >
Syntax highlighting : r/neovim - Reddit
On top of being inconsistent it makes my OCaml files look ugly because it doesn't highlight | and -> which I consider to...
Read more >
Semantic highlighting fails completely in JS / JSX : WEB-31422
WEB-26194 Semantic highlighting with parameters in JSX - inconsistent colouring ... the local "icon" variable has a similar issue: it has a different...
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