aboutsummaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
authorClément Delafargue2023-01-13 15:15:39 +0000
committerMichael Davis2023-01-13 15:42:05 +0000
commitb6331394a3f341ad21f8fad3e6e0b93becda9ce5 (patch)
tree7dc0434bad0573592f7fb378c2f9f400111aacc0 /book/src
parent1f6809c9ce8f4b864b3754111b8673ca282f67f5 (diff)
book: fix the injection-regex example
The regex uses anchors, while all of the language configs packaged with helix don't use them.
Diffstat (limited to 'book/src')
-rw-r--r--book/src/languages.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/book/src/languages.md b/book/src/languages.md
index e45ef910..ff06dc00 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 = " " }