Closed jeff-hykin closed 2 years ago
I'm actually suprised this behavior didn't always exist as this was the intended scoping. meta
tags are described as containing nested scopes,meta.preprocessor.macro
is supposed to be the entire macro.
For theming I would recommend avoiding standalone meta tags, since they more or less only exist to provide context. For example meta.preprocessor.macro punctuation.vararg-ellipses
would be for highlighting ...
but only in the context of a macro.
I went ahead and added meta.function.preprocessor.parameters
to allow for more customization. The following should make them look the same:
Dark blue:
entity.name.function.preprocessor
punctuation.definition.parameters.begin.preprocessor
punctuation.definition.parameters.end.preprocessor
meta.function.preprocessor.parameters punctuation
Light blue:
variable.parameter.preprocessor
I think I'm misunderstanding something. The latest changes I pulled in last week no longer include meta.preprocessor.macro.cpp
on all parts of the macro. Is this intentional?
Scopes of namespace
with latest grammar:
storage.type.namespace.definition.cpp
keyword.other.namespace.definition.cpp
meta.head.namespace.cpp
meta.block.namespace.cpp
source.cpp
Scopes of namespace
before the updates I pulled in last week (VS Code used to be on commit db3f4e4a5d8335b2f6d689bec490c23f8313630f):
storage.type.namespace.definition.cpp
keyword.other.namespace.definition.cpp
meta.head.namespace.cpp
meta.block.namespace.cpp
meta.preprocessor.macro.cpp
source.cpp
Oh I apologize, I looked at the images in the wrong order. This is definitely a bug
Okay it should be fixed with v1.15.18
Pulled in the changes. Thank you for the fix!
(Movign this discussion here @alexr00)