From 21155775af47e8e84f59dfd01d2f3bfd04cb30c5 Mon Sep 17 00:00:00 2001 From: Ke Date: Thu, 7 Mar 2019 10:05:00 +1300 Subject: [PATCH 1/4] Update check_syntax.sh Removed absolute path from check syntax --- Build/check_syntax.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/check_syntax.sh b/Build/check_syntax.sh index 17f0d58..59854bd 100755 --- a/Build/check_syntax.sh +++ b/Build/check_syntax.sh @@ -1,9 +1,9 @@ #! /bin/bash -result=$(/usr/bin/lassoc "$1" -n -o /tmp/lassoTMbundlecheck 2>&1) +result=$(lassoc "$1" -n -o /tmp/lassoTMbundlecheck 2>&1) if [ "$result" == "" ]; then echo "No Problems Found" else echo $result -fi \ No newline at end of file +fi From d79f43a63429ae24e828e39b01d89c5aee722cd9 Mon Sep 17 00:00:00 2001 From: Ke Date: Thu, 7 Mar 2019 10:05:27 +1300 Subject: [PATCH 2/4] Update Lasso.sublime-build Removed absolute path from build --- Build/Lasso.sublime-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Build/Lasso.sublime-build b/Build/Lasso.sublime-build index 3d3d86b..7e268dd 100644 --- a/Build/Lasso.sublime-build +++ b/Build/Lasso.sublime-build @@ -6,7 +6,7 @@ { "target": "exec", "name": "Run", - "shell_cmd": "/usr/bin/lasso9 \"$file\"" + "shell_cmd": "lasso9 \"$file\"" } ] -} \ No newline at end of file +} From 22f86dc52bc51a7214b9de0253e241a551f79ee2 Mon Sep 17 00:00:00 2001 From: Ke Date: Thu, 7 Mar 2019 10:07:09 +1300 Subject: [PATCH 3/4] Update Lasso.tmLanguage Changed \a to \Z to match entire document / stop breaking on lines beginning with a. --- Syntaxes/Lasso.tmLanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Syntaxes/Lasso.tmLanguage b/Syntaxes/Lasso.tmLanguage index fe30d5b..aa817a1 100644 --- a/Syntaxes/Lasso.tmLanguage +++ b/Syntaxes/Lasso.tmLanguage @@ -39,7 +39,7 @@ (?m)\A\s*(?=<|\[) end - \a + \Z patterns @@ -58,7 +58,7 @@ \A end - \a + \Z patterns From 9ffb3178ebc9d7c194aee1350e52ef7ec279ed9a Mon Sep 17 00:00:00 2001 From: Ke Date: Fri, 8 Mar 2019 10:19:33 +1300 Subject: [PATCH 4/4] Also removed path from lasso_syntax_check.py --- lasso_syntax_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lasso_syntax_check.py b/lasso_syntax_check.py index 94158ac..ed9657e 100644 --- a/lasso_syntax_check.py +++ b/lasso_syntax_check.py @@ -5,7 +5,7 @@ class LassoCheckSyntaxCommand(sublime_plugin.WindowCommand): def run(self, **kwargs): file_regex = "^Compiler error. ([^:])*: (.*?)line: (\\d+), col: (\\d+).*$" - cmd = ['/usr/bin/lassoc', self.window.active_view().file_name(), '-n', '-o', '/dev/null'] + cmd = ['lassoc', self.window.active_view().file_name(), '-n', '-o', '/dev/null'] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) data = proc.communicate()[0].decode("utf-8") or "No Problems Found" @@ -23,4 +23,4 @@ def run(self, **kwargs): view.show(view.text_point(row, col)) def is_enabled(self, **kwargs): - return True \ No newline at end of file + return True