oleg-shilo / sublime-codemap

CodeMap - is a ST3 plugin for showing the code tree representing the code structure of the active view/document
MIT License
41 stars 4 forks source link

Issues with loading custom mappers for files with hyphens... #31

Closed Acecool closed 6 years ago

Acecool commented 6 years ago

Seems the same issue we're having with .s is occurring for files with hyphens... Special syntax is needed to load these too - so all of the sublime-* files can't be mapped ( I was adding a mapper for sublime-syntax because I'm diving into it to get rid of all my CFG_ vars and to get rid of the AccessorFunc callbacks ( at least for the default funcs ) )...

Best thing to do is probably find them and replace with underscores... Underscores are frowned upon BUT they should work just fine... The other option is to replace -s with nothing... sublimesyntax sublimesettings, etc... Looks meh, but better than not loading at all...

I've leave this up to your discretion but I'll probably edit code_map.py for another pull-request in a bit...

Acecool commented 6 years ago

Actually - never mind... I didn't reload Sublime Text after adding it... it seems to work now...