Skip to content

Commit

Permalink
Fixed "Formatter not found" bug in ST3 3088
Browse files Browse the repository at this point in the history
  • Loading branch information
akalongman committed Jun 1, 2015
1 parent 06621b8 commit 72162fc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* CodeFormatter
*
* Copyright (c) 2009-2014, Avtandil Kikabidze aka LONGMAN <[email protected]>.
* Copyright (c) 2009-2015, Avtandil Kikabidze aka LONGMAN <[email protected]>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion codeformatter/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def exists(self):
return False

def getSyntax(self):
pattern = re.compile(r"Packages/(.+?)/.+?\.tmLanguage")
pattern = re.compile(r"Packages/.*/(.+?).(?=tmLanguage|sublime-syntax)")
m = pattern.search(self.syntax_file)
found = ""
if (m):
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"2.2.0": "messages/2.2.0.txt",
"2.3.0": "messages/2.3.0.txt",
"2.4.0": "messages/2.4.0.txt",
"2.4.1": "messages/2.4.1.txt"
"2.4.1": "messages/2.4.1.txt",
"2.4.2": "messages/2.4.2.txt"
}
7 changes: 7 additions & 0 deletions messages/2.4.2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Sublime CodeFormatter 2.4.2 Changelog:

Please report me any bugs and proposals at [email protected] or GitHub (https://github.com/akalongman/sublimetext-codeformatter/issues)

Fixes
------------
- Fixed "Formatter not found" bug in ST3 3088. Thanks to @momoca

0 comments on commit 72162fc

Please sign in to comment.