book: fix the injection-regex example

The regex uses anchors, while all of the language
configs packaged with helix don't use them.
pull/4123/head^2
Clément Delafargue 2 years ago committed by Michael Davis
parent 1f6809c9ce
commit b6331394a3

@ -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 = " " }

Loading…
Cancel
Save