From 713ab7fabad89cfa25725014b01a0c0caf4d273e Mon Sep 17 00:00:00 2001 From: Jamie Willis Date: Thu, 18 Apr 2024 17:00:40 +0100 Subject: [PATCH] added backticks to cycle detection, which makes the error clearer --- .../scala/parsley/debugger/internal/DivergenceContext.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsley-debug/shared/src/main/scala/parsley/debugger/internal/DivergenceContext.scala b/parsley-debug/shared/src/main/scala/parsley/debugger/internal/DivergenceContext.scala index eedc3bd6f..30a64d1dc 100644 --- a/parsley-debug/shared/src/main/scala/parsley/debugger/internal/DivergenceContext.scala +++ b/parsley-debug/shared/src/main/scala/parsley/debugger/internal/DivergenceContext.scala @@ -138,7 +138,7 @@ private [parsley] final class DivergenceContext { else "" val msg = - s"\n$loopName is looping unproductively as $bodyName can succeed having not consumed input$stateNote$refineMsg" + s"\n`$loopName` is looping unproductively as `$bodyName` can succeed having not consumed input$stateNote$refineMsg" throw new ParsleyException(msg) } }