Sublime Forum

SublimeText3 can't find const vars in C and pytho correctlly

#1

When I hit Ctrl+R or Ctrl+Shift+R in SublimeText3, the const vars doesn’t show up. Here is the following test code which would reproduce the problem.

[code]#include <stdio.h>
const int a = 10;

int main(void)
{
return 0;
}[/code]

Hit Ctrl+R now will only show main in the popup list.

The following code is the python code which SublimeText3 can’t correctly parse.

[code]import sys

shengy = 10
print shengy[/code]

Hit Ctrl+R shows nothing in the popup list.

is python not supported by SublimeText3?

Oh btw, I’m using SublimeText3 build 3033 without any plugins and settings, it’s pure SublimeText3

Best regards,
Sheng Yun

0 Likes

#2

Ctrl+R only goes to function declarations.

0 Likes

#3

I believe it also displays macros in some circumstances.

Are there any official documentation about which is displayed and which is not?

Best regards,
Sheng Yun

0 Likes

#4

I believe it checks the tmLanguage-defined scope to see if it’s a function, but I could be wrong.

0 Likes