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

Enlarge the TEST_RANGE() regex to accept more spaces #540

Merged
merged 1 commit into from
Feb 12, 2021
Merged

Enlarge the TEST_RANGE() regex to accept more spaces #540

merged 1 commit into from
Feb 12, 2021

Conversation

numaru
Copy link
Contributor

@numaru numaru commented Feb 12, 2021

This commit change the regex to accept more spaces inside the brackets
of the TEST_RANGE().

I use clang-format through vscode "editor.formatOnSave": true feature and it produce
padding spaces inside the array brackets by default.

int a[] = [1, 2];

is changed into

int a[] = [ 1, 2 ];

Also, every time I save a file containing a TEST_RANGE() with ctrl + s
it breaks it.

This commit change the regex to accept more spaces inside the brackets
of the TEST_RANGE().

I use clang-format through vscode "editor.formatOnSave": true feature and it produce
padding spaces inside the array brackets by default.

```c
int a[] = [1, 2];
```

is changed into

```c
int a[] = [ 1, 2 ];
```

Also, every time I save a file containing a TEST_RANGE() with ctrl + s,
it breaks it.
@mvandervoord mvandervoord merged commit 74cde08 into ThrowTheSwitch:master Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants