From b6331394a3f341ad21f8fad3e6e0b93becda9ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Delafargue?= Date: Fri, 13 Jan 2023 16:15:39 +0100 Subject: [PATCH] book: fix the injection-regex example The regex uses anchors, while all of the language configs packaged with helix don't use them. --- book/src/languages.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/languages.md b/book/src/languages.md index e45ef910a..ff06dc00d 100644 --- a/book/src/languages.md +++ b/book/src/languages.md @@ -35,7 +35,7 @@ Each language is configured by adding a `[[language]]` section to a [[language]] name = "mylang" scope = "source.mylang" -injection-regex = "^mylang$" +injection-regex = "mylang" file-types = ["mylang", "myl"] comment-token = "#" indent = { tab-width = 2, unit = " " }