I would like to extend Sublime Text's GotoAnything for a custom source format. I've created a .tmPreferences
file and from the behaviour I can tell it's being recognized. However, I have some trouble with the correct RegEx string.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List Function</string>
<key>scope</key>
<string>source.nsis</string>
<key>settings</key>
<dict>
<key>symbolIndexTransformation</key>
<string>s/Function $1/</string>
</dict>
<key>uuid</key>
<string>9b3c04e2-e02a-4c55-85e9-de83ac7eedaf</string>
</dict>
</plist>
So yes, I want to match functions using in the scheme Function myFunctionName
(for Goto @myFunctionName
). This seems very trivial, yet I'm not sure why I don't get it to work.