aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-09-26 13:47:46 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-09-26 13:47:46 -0400
commit1f2df3d7fe820867d66f050d921f16488f5a9ba0 (patch)
tree17e35d2d1d1a13192cd282e7b9038a1d7242c806 /modules/textadept
parent4c1fc1815883b8b68eb3e4edd87eb845419c5379 (diff)
downloadtextadept-1f2df3d7fe820867d66f050d921f16488f5a9ba0.tar.gz
textadept-1f2df3d7fe820867d66f050d921f16488f5a9ba0.zip
Fixed Python syntax checker on Win32; modules/textadept/run.lua
'\' in path was causing problems due to being interpreted by Python rather than the shell.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/run.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index dc8328e4..180ded47 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -347,7 +347,7 @@ end)
-- interpreted languages and markup languages.
-- @class table
-- @name syntax_commands
-M.syntax_commands = {awk='gawk --source "BEGIN{exit(0)} END{exit(0)}" --file "%f"',bash = function() return (buffer:get_line(0):match('^#!.+/([^/%s]+)') or 'bash')..' -n "%f"' end,coffeescript='coffee -cp "%f"',css='csslint --format=compact --quiet "%f"',fish='fish -n "%f"',go='gofmt -l "%f"',html='tidy -e -q -utf8 "%f"',javascript='jshint "%f"',less='lessc --lint --no-color "%f"',litcoffee='coffee -cp "%f"',lua='luac -p "%f"',perl='perl -c -X "%f"',php='php -l "%f"',python=[[python -c 'compile(open("%f").read(),"%f","exec",0,1)']],ruby='ruby -c "%f"',sass='sass -c -q "%f"',xml='xmllint "%f"',}
+M.syntax_commands = {awk='gawk --source "BEGIN{exit(0)} END{exit(0)}" --file "%f"',bash = function() return (buffer:get_line(0):match('^#!.+/([^/%s]+)') or 'bash')..' -n "%f"' end,coffeescript='coffee -cp "%f"',css='csslint --format=compact --quiet "%f"',fish='fish -n "%f"',go='gofmt -l "%f"',html='tidy -e -q -utf8 "%f"',javascript='jshint "%f"',less='lessc --lint --no-color "%f"',litcoffee='coffee -cp "%f"',lua='luac -p "%f"',perl='perl -c -X "%f"',php='php -l "%f"',python=function() return ([[python -c "compile(open('%f').read(),'%f','exec',0,1)"]]):gsub('%%f', (buffer.filename:gsub('\\', '\\\\\\\\'))) end,ruby='ruby -c "%f"',sass='sass -c -q "%f"',xml='xmllint "%f"',}
---
-- Map of file extensions or lexer names to patterns that match their respective