Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

-

  • Loading branch information...
commit bc5a174042eb7002e0383693ed92b8b79c48f313 1 parent 67a7ac2
Naomichi Yamakita authored
Showing with 4 additions and 2 deletions.
  1. +3 −2 PhpSyntaxChecker.py
  2. +1 −0  packages.json
View
5 PhpSyntaxChecker.py
@@ -1,4 +1,5 @@
-import sublime, sublime_plugin, os, commands, re, subprocess, sys
+import sublime, sublime_plugin
+import os, commands, re, subprocess, sys
class PhpSyntaxChecker(sublime_plugin.EventListener):
# Command refers to $PATH environment variable
@@ -13,7 +14,7 @@ def on_post_save(self, view):
root, extension = os.path.splitext(path)
if extension in self.TARGET_SUFFIXES:
- command = self.EXECUTE_COMMAND + " " + path
+ command = self.EXECUTE_COMMAND + " \"" + path + "\""
proc = subprocess.Popen([command],
shell=True,
stdout=subprocess.PIPE,
View
1  packages.json
@@ -5,6 +5,7 @@
"name": "PHP Syntax Checker",
"description": "Check syntax error of PHP",
"author": "Naomichi Yamakita",
+ "last_modified": "2012-09-01 00:00:00",
"platforms": {
"*": [
{
Please sign in to comment.
Something went wrong with that request. Please try again.