These already have different scopes:
- Code: Select all
meta.namespace-block.c++ // and
meta.namespace-block.c++ comment.line.double-slash.c++ // etc.
which you can check by clicking within the text and pressing Ctrl-Alt-Shift-P
and reading the status-bar. So you just need to slip in some colours for these into your chosen theme. The package ScopeHunter
is very useful for reading and copying scopes.
Thanks for the tip about Scopehunter. That sounds good!
I tried to use "meta.namespace-block.c++ keyword.control.c++" to style the actual namespace keyword in that scenario but it didn't work and "meta.namespace-block.c++" colours the whole thing obviously.
Actually, thinking about it, if that had worked then I wouldn't have needed it because my "keyword.control.c++" style would've done it anyway! Duh!