diff --git a/pkgs/redex-pkgs/redex-pict-lib/redex/private/core-layout.rkt b/pkgs/redex-pkgs/redex-pict-lib/redex/private/core-layout.rkt index e672e36b42..ce00d3c42e 100644 --- a/pkgs/redex-pkgs/redex-pict-lib/redex/private/core-layout.rkt +++ b/pkgs/redex-pkgs/redex-pict-lib/redex/private/core-layout.rkt @@ -708,6 +708,7 @@ pink-code-font (default-font-size)))))] [(and (symbol? atom) + (not (equal? atom '_)) (regexp-match #rx"^([^_^]*)_([^^]*)\\^?(.*)$" (symbol->string atom))) => (match-lambda diff --git a/pkgs/redex-pkgs/redex-test/redex/tests/bitmap-test.rkt b/pkgs/redex-pkgs/redex-test/redex/tests/bitmap-test.rkt index f649292b93..ae04fa4bb9 100644 --- a/pkgs/redex-pkgs/redex-test/redex/tests/bitmap-test.rkt +++ b/pkgs/redex-pkgs/redex-test/redex/tests/bitmap-test.rkt @@ -121,11 +121,12 @@ [(T x x) (any_1 any_2) (where any_1 2) - (where any_2 2)]) + (where any_2 2)] + [(T _ _ _) 1234]) -;; in this test, the metafunction has 2 clauses +;; in this test, the metafunction has 3 clauses ;; with a side-condition on the first clause -;; and a 'where' in the second clause +;; a 'where' in the second clause, and an underscore (btest (parameterize ([metafunction-cases '("first-one" 1)]) (render-metafunction T)) "metafunction-T.png") @@ -425,5 +426,4 @@ (render-judgment-form typeof)) "stlc.png")) -(printf "bitmap-test.rkt: ") (done) diff --git a/pkgs/redex-pkgs/redex-test/redex/tests/bmps-macosx/metafunctions-multiple.png b/pkgs/redex-pkgs/redex-test/redex/tests/bmps-macosx/metafunctions-multiple.png index 5157dfdc0d..977fe249b7 100644 Binary files a/pkgs/redex-pkgs/redex-test/redex/tests/bmps-macosx/metafunctions-multiple.png and b/pkgs/redex-pkgs/redex-test/redex/tests/bmps-macosx/metafunctions-multiple.png differ