From 042b66787cd81be99650134d14f614f948cccd07 Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 19 Jan 2025 22:44:51 +0300 Subject: [PATCH] upgrade to chroma v2 Signed-off-by: ngn --- src/utils/syntax.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/syntax.go b/src/utils/syntax.go index 369f114..fc3b38d 100644 --- a/src/utils/syntax.go +++ b/src/utils/syntax.go @@ -7,9 +7,9 @@ import ( "regexp" "strings" - html_formatter "github.com/alecthomas/chroma/formatters/html" - "github.com/alecthomas/chroma/lexers" - "github.com/alecthomas/chroma/styles" + html_formatter "github.com/alecthomas/chroma/v2/formatters/html" + "github.com/alecthomas/chroma/v2/lexers" + "github.com/alecthomas/chroma/v2/styles" ) // highlightSyntaxViaContent uses Chroma to lex code content and apply the appropriate tokenizer engine.