tree-sitter-cpp
tree-sitter-cpp copied to clipboard
Attribute syntax TODO: support using
Since C++17, attributes can have using in them:
[[using name::space: attr]]
Also (this is admittedly strange) the C++ grammar doesn't introduce an attribute with a single [[ token but with two tokens [ [.
(Yes, this means it's really annoying to call an immediately-invoked lambda inside a call to operator[]).
The given example is invalid, attribute-namespaces must be identifiers (dcl.attr.grammar), therefore scope resolution operators may not appear in an attribute-namespace.
Anyway, https://github.com/tree-sitter/tree-sitter-cpp/pull/278 implements this.