Sublime Forum

C function calls with line breaks aren't highlighted

#1

Say I have this snippet of C code: some_function(x, y);. ST3 highlights this nicely (see “function 01.png”).

If I add some space, the function call is still syntactically correct: some_function(x, y);. ST3 still highlights it (“function 02.png”).

If I add a line break, the function call is still syntactically correct:

some_function
  (x, y);

…but ST3 does not highlight it any more (“function 03.png”).

Is there some setting I can tweak or package I can use that will fix the highlighting here?

I’m trying this on ST3, build 3059, on Ubuntu 13.10.

0 Likes

#2

Attaching the images doesn’t seem to have worked. But you can try it out easily enough, just set the file mode to “C”.

0 Likes