Sublime Forum

C++ syntax highlight bug

#1

In the following example the variable names (bar and bars) are highlighted:

Foo(
  int bar,
  int bars );

But when I introduce an additional line-break (which is perfectly allowed by the syntax), the second variable is no longer highlighted:

Foo(
  int bar,
  int bars 
);
0 Likes

#2

you should log this at https://github.com/sublimehq/Packages/issues if there isn’t already an open issue there for it

0 Likes

#3

I just did. Can I close this issue here?

0 Likes

#4

bar and bars does not get special scopes even in your first example.
Are you using a 3rd-party syntax?

0 Likes

#5

Maybe my example was too minimalistic:

I am using a customized color-scheme, but that only uses the scope.

1 Like