Skip to content

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

Merged
mvandervoord merged 1 commit intoThrowTheSwitch:masterfrom
numaru:master
Feb 12, 2021
Merged

Enlarge the TEST_RANGE() regex to accept more spaces#540
mvandervoord merged 1 commit intoThrowTheSwitch:masterfrom
numaru:master

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