Sublime Forum

C/C++ symbols not appearing in Goto Anything @

#1

I just started using Sublime Text (2), and it’s great, especially Ctrl+P – Goto Anything.

The goto symbol (@) seems to work well for Python, but no symbols show up for C or C++. For instance, with this C file – code.google.com/p/inih/source/browse/trunk/ini.c – loaded, if I press Ctrl+P then @, nothing shows up. Word match (#) works fine, but @ shows nothing for C/C++.

Is this a bug with the regexes in the C/C++ packages, or something I’m doing wrong?


Also, the symbol matcher in Python picks up new-style or inherited classes fine, but not bare old-style classes like:

[code]class Editor: # Edit symbol won’t be picked up
def save(): # save will, however

class NewEditor(object): # But this will be picked up

[/code]
If I replace “meta.class.old-style.python” in the Python.tmLanguage file with just “meta.class.python”, then it works. Is this a bug or a feature?

Thanks!

0 Likes

#2

Both these issues will be addressed in the next version

0 Likes

#3

I know this is an old topic (very old), but it seems it’s still relevant-- for ST3. ctrl-p then @ will still not produce any symbols other than function names and defines for c/c++ code.

Will C/C++ vars be included in ST3 goto anything? Or-- am I doing something wrong? :smile:

thanks!

0 Likes