Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New pref to allow tabbing over whitespace during syntax test development #183

Merged
merged 2 commits into from Mar 18, 2018

Conversation

keith-hall
Copy link
Member

@keith-hall keith-hall commented Feb 15, 2018

Quite often when writing syntax tests, I don't add any assertions for whitespace (unless I am adding a negation for the previous assertion to confirm the scope is no longer active), as whitespaces typically don't receive any special scopes. Therefore, when I have a file like:

line being tested
# ^^ example1

and I create a new test line and press Tab, I then have to press Space^ to get assertions for the next non-whitespace span.

line being tested
# ^^ example1
#   ^ base_scope

This PR allows me to set a new preference called syntax_test.skip_whitespace to true, so that I can just press Tab and end up with:

line being tested
# ^^ example1
#    ^^^^^ example2

Hopefully other people will also find this useful :)

@FichteFoll FichteFoll merged commit b4093d1 into SublimeText:master Mar 18, 2018
FichteFoll added a commit that referenced this pull request Mar 18, 2018
@FichteFoll FichteFoll added this to the 3.1.5 milestone Mar 18, 2018
@keith-hall keith-hall deleted the syntax-test-dev-skip-ws branch March 19, 2018 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants