-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make regexes for scanning include/import statements consistent (#426)
For res-scanner, add `^[ \t]*` before and `[ \t]*` after the `include` word. This matches what was done in 13b8a68 for c-scanner and objc-scanner. Also use `sequence.transform path.native` for the `angle` and `quoted` results, similar to cpp-scanner. For cpp-scanner, use `[^<]+` to match characters for angled includes, and `[^\"]+` for quoted includes, similar to what was done in res-scanner. This ensures strings like `#include <foo> bar>` will not match. For objc-scanner, idem as for cpp-scanner.
- Loading branch information
1 parent
a463914
commit 7954ee6
Showing
3 changed files
with
10 additions
and
7 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
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