Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Colorization of member is incorrect after "? (" occurs. #316

Closed
sean-mcmanus opened this issue Jan 7, 2019 · 1 comment
Closed

Colorization of member is incorrect after "? (" occurs. #316

sean-mcmanus opened this issue Jan 7, 2019 · 1 comment

Comments

@sean-mcmanus
Copy link

Prerequisites

Description

Incorrect syntax colorization.

image

Steps to Reproduce

  1. Use a C++ file with code that uses "? (var.member)", such as
struct cfg_type { int t_low_fan; };

int main()
{
  cfg_type cfg;
  bool b = cfg.t_low_fan ? (cfg.t_low_fan == 1 ? "low" "high") : "off";
}

Expected behavior: The 2nd member access is colored incorrectly.

Actual behavior: It should appear like the 1st.

Reproduces how often: 100%

Versions

Atom: 1.23.3

Additional Information

Orginally reported for VS Code at microsoft/vscode-cpptools#3006 .

@sean-mcmanus
Copy link
Author

It doesn't repro with the latest version of Atom with the tree-sitter -- I didn't realize I had an old version of Atom.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant