From 790b70068010038836cb2848dff4b9dc00cce110 Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Sun, 18 Mar 2018 19:04:17 +0100 Subject: [PATCH] Skip whitespace by default --- Package/PackageDev.sublime-settings | 4 ++-- plugins_/syntaxtest_dev.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Package/PackageDev.sublime-settings b/Package/PackageDev.sublime-settings index 55b58608..5f60b673 100644 --- a/Package/PackageDev.sublime-settings +++ b/Package/PackageDev.sublime-settings @@ -51,8 +51,8 @@ // "DRAW_NO_OUTLINE", "DRAW_SOLID_UNDERLINE", "DRAW_STIPPLED_UNDERLINE", // "DRAW_SQUIGGLY_UNDERLINE", "HIDDEN", "PERSISTENT" "syntax_test.highlight_styles": ["DRAW_NO_FILL"], - + // Whether to skip whitespace after the previous line's test assertions when // pressing the Tab key on a new syntax test line - "syntax_test.skip_whitespace": false, + "syntax_test.skip_whitespace": true, } diff --git a/plugins_/syntaxtest_dev.py b/plugins_/syntaxtest_dev.py index b4d2bc23..2b5e9cd6 100644 --- a/plugins_/syntaxtest_dev.py +++ b/plugins_/syntaxtest_dev.py @@ -284,7 +284,7 @@ def run(self, edit): # find the last test assertion column on the previous line details = listener.get_details_of_test_assertion_line(details.line_region.begin() - 1) next_col = None - skip_whitespace = get_setting('syntax_test.skip_whitespace', False) + skip_whitespace = get_setting('syntax_test.skip_whitespace', True) if details.assertion_colrange: next_col = details.assertion_colrange[1] else: