book: fix the injection-regex example
The regex uses anchors, while all of the language
configs packaged with helix don't use them.
commitb6331394a3f341ad21f8fad3e6e0b93becda9ce5
authorClément Delafargue <clement@delafargue.name>
dateFri 13 Jan 2023, 16:15 (4 years ago)
parent1f6809c
book/src/languages.md+1−1
@@ -35,7 +35,7 @@ Each language is configured by adding a `[[language]]` section to a
3535[[language]]
3636name = "mylang"
3737scope = "source.mylang"
38−injection-regex = "^mylang$"
38+injection-regex = "mylang"
3939file-types = ["mylang", "myl"]
4040comment-token = "#"
4141indent = { tab-width = 2, unit = " " }