jdavisclark / JsFormat

Javascript formatting for Sublime Text 2 & 3
1.42k stars 222 forks source link

"Format: Javascript" doesn't show up Fix #140

Closed wuilliam321 closed 9 years ago

wuilliam321 commented 9 years ago

After install the plugin, this is the error message in console ST2:

Reloading plugin /home/wuilliam/.config/sublime-text-2/Packages/JsFormat/js_formatter.py
Traceback (most recent call last):
  File "./sublime_plugin.py", line 62, in reload_plugin
  File "./js_formatter.py", line 81
    if ext in {".sublime-settings", ".sublime-project"}:
                                  ^
SyntaxError: invalid syntax

I change the dictionary for a list, and it was solved. I love this plugin! i hope it helps

CREATE-AI commented 9 years ago

i hava the same problem with you.Waiting to be solved

wuilliam321 commented 9 years ago

You can checkout my PR, it works good! we hope i will be merged asap @274793580