SublimeText / PackageDev

Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
MIT License
436 stars 83 forks source link

Context names aren't added to the indexed reference list #221

Closed mitranim closed 5 years ago

mitranim commented 5 years ago

Package/Sublime Text Syntax Definition/References - Context.tmPreferences wants to add context names to references:

<dict>
    <key>scope</key>
    <string>source.yaml.sublime.syntax meta.include variable.other</string>
    <key>settings</key>
    <dict>
        <key>showInIndexedReferenceList</key>
        <integer>1</integer>
    </dict>
</dict>

As far as I can tell, context names that appear in include, push, set, push: [], set: [] aren't added to the reference list. Probably because they're also scoped as string.unquoted in all of those places.

keith-hall commented 5 years ago

see https://github.com/SublimeText/PackageDev/pull/213, presumably you need to patch your Packages/Default/symbol.py to get this working

mitranim commented 5 years ago

Ooh didn't notice that. Thanks for the pointer.