Sublime Forum

Indexing Symbols introduced by C++ 'using' Statement

#1

There are other posts on this topic, but they’re all from ~2013 and ONE WOULD THINK a premium product would have fixed this issue by now.

Sublime Text’s indexing is great. It’s the main reason I use it… but symbols created via C++ using statements never seem to get recognized!

Is there a way for me to “augment” their parser to make this work?

Edit: mistakenly said ‘typedef’ instead of ‘using’

0 Likes

#2

maybe you could share an example, this post seems to indicate they are indexed:

0 Likes

#3

Here’s an example:

template <typename FOO> using BAR = BAZ<FOO>;

Edit: I forgot the issue was a ‘using’ statement rather than a typedef… I’ll change the title

0 Likes

#4

We track issues with the syntaxes at https://github.com/sublimehq/Packages/issues. We definitely are constantly working on syntaxes, and lots of community members also contribute bug reports and patches.

Actually, yes! We’ll need to ensure the syntax is defining a suitable unique scope for these identifiers:

And then we’ll need to make sure that scope is set to be indexed:

Generally many of the contributors to the default syntaxes hang out on the Discord server, so that might be a place to log on if you want to contribute and need a little help.

3 Likes

#5

Thanks for the links!

0 Likes