mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 09:25:25 +00:00
Add negative number parsing into @test_value
This CL updates the intrinsics lexer to allow negative values for int and float numerics. This allows doing `@test_value(-2)` in the def file. Change-Id: I2cad9b25a2932057ce9bc51dec6c32231e06f0a0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/107440 Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
91ed6f7289
commit
c3cbc35650
@@ -30,9 +30,10 @@ type Test func(path string) bool
|
||||
//
|
||||
// pattern uses forward-slashes for directory separators '/', and may use the
|
||||
// following wildcards:
|
||||
// ? - matches any single non-separator character
|
||||
// * - matches any sequence of non-separator characters
|
||||
// ** - matches any sequence of characters including separators
|
||||
//
|
||||
// ? - matches any single non-separator character
|
||||
// * - matches any sequence of non-separator characters
|
||||
// ** - matches any sequence of characters including separators
|
||||
func New(pattern string) (Test, error) {
|
||||
// Transform pattern into a regex by replacing the uses of `?`, `*`, `**`
|
||||
// with corresponding regex patterns.
|
||||
|
||||
Reference in New Issue
Block a user