Skip to content

Commit

Permalink
Add simplejson dependency
Browse files Browse the repository at this point in the history
The JSON package currently shipped inside SublimeText with Python 3.3
doesn't report the line where something went wrong.
Adding simplejson fixes this
  • Loading branch information
dvcrn committed Aug 28, 2019
1 parent daff8c9 commit 6a5a10e
Show file tree
Hide file tree
Showing 42 changed files with 7,795 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from SublimeLinter.lint import Linter

from . import simplejson


class JSON(Linter):
cmd = None
Expand Down Expand Up @@ -33,7 +35,7 @@ def run(self, cmd, code):
try:
if strict:
self.regex = self.strict_regex
json.loads(code)
simplejson.loads(code)
else:
self.regex = self.loose_regex
sublime.decode_value(code)
Expand Down
Loading

0 comments on commit 6a5a10e

Please sign in to comment.