Syntax highlighting specific symbols and defined types


#1

Hi! I’ve been tinkering with the atom stylesheet and almost have everything how I’d like it.

However, I’d like to be able to colour match the opening and closing (brackets) of functions. I’ve managed to colour the opening brackets using .punctuation.definition.parameters class, but have had no such luck with the closing brackets, presumably because they’re classed under: meta.block.

Therefore, I’d like to know if there is a way of colouring every type of one symbol, such as ‘)’?

Bonus round!: Is there a simple way of adding keywords such as storage classes (Uint32 for example) to the grammar? I’m using the default c++ language grammar but don’t see a simple way to add storage classes. Ideally I’d also like to be able to add colouring for my own defined classes etc.

Thanks very much for your help!