duotone-dark-syntax icon indicating copy to clipboard operation
duotone-dark-syntax copied to clipboard

C bugs

Open louis-vs opened this issue 9 years ago • 1 comments

I've encountered a couple of bugs when it comes to the C syntax highlighting, mostly down to some strange irregularities:

  • Function brackets: built-in/library functions work fine (i.e. malloc, printf) but user-mades do not

function calling

  • Function pointer typedefs have irregular highlighting

typedefs with function pointers

Also, are semi-colons not supposed to be the duller tone throughout, like in the CSS preview on the main page? It's a bit irregular atm as you can see in the second bullet.

These are just off the top of my head, but there might be a couple more I haven't put here.

Other than that, I love the duo-tone style, especially with these colours!

louis-vs avatar Nov 21 '15 15:11 louis-vs

Function brackets: built-in/library functions work fine (i.e. malloc, printf) but user-mades do not

Generally I think the parenthesis of die(... is correct. It looks a bit toned down giving less importance.

The problem is that currently it's not really possible to style the other parentheses that are stronger. They're just "plain text" without having a way to select them. Same with some semicolons.

I'll make a new issue in language-c and see if it can be fixed there.

Edit: This https://github.com/atom/language-c/pull/107 might help.

simurai avatar Nov 23 '15 23:11 simurai