@@ -72,7 +72,7 @@ def guess_lexer_from_syntax(self):
         syntax = self.view.settings().get('syntax')
         if not syntax:
             return
-        match = re.match(r"Packages/.*/(.*?)\.tmLanguage$", syntax)
+        match = re.match(r"Packages/.*/(.*?)\.(?:tmLanguage|sublime-syntax)$", syntax)
         if not match:
             return
         try: