From a46d4282cf1a3aeff677642dd69b78e759e9f4bc Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Mon, 19 Feb 2024 20:06:17 +0100 Subject: [PATCH] Provide a `Realm` for `fail` messages --- src/core/kaleidoscope.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/kaleidoscope.scala b/src/core/kaleidoscope.scala index 94a9b63..682bbb1 100644 --- a/src/core/kaleidoscope.scala +++ b/src/core/kaleidoscope.scala @@ -27,6 +27,8 @@ import java.util.regex.* import language.experimental.captureChecking +given Realm = realm"kaleidoscope" + extension (inline ctx: StringContext) transparent inline def r: Any = ${Kaleidoscope.regex('ctx)} transparent inline def g: Any = ${Kaleidoscope.glob('ctx)}