Sublime Forum

Enabling 'goto definition' in a custom language

#1

I’d like to be able to give my scripting language users the ability to jump to the definition of macros they are using.

Macros are defined thus:

Macro:(,params])

and files defining macros are pulled into the current script using:

Import:()

You then use a macro by typing

:([params])

It would be great, for both writing and debugging, if it were possible to highlight the macro name and jump to the file containing the definition.

Is this possible in Sublime Text 2 or 3?

Thanks!

0 Likes

#2

docs.sublimetext.info/en/latest/ … mbols.html

ST3 is required for proper goto definition usage, but goto symbol (in same file) also works on ST2.

0 Likes