-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This fixes a bug where `x x` would be translated to `x\s+x`, which is subtly wrong as `\s` allows newline matching. The more correct way is `x[ \t\v]+x`, which it now is with this patch. Fixes #37
- Loading branch information
1 parent
470b9e6
commit 83d119a
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// RUN: strip-comments.sh %s | filecheck %s | ||
|
||
ax | ||
x, x, | ||
x, | ||
|
||
// CHECK: ax | ||
// CHECK-NEXT: x, x, | ||
// CHECK: x, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters