Skip to content

Commit

Permalink
book: fix the injection-regex example
Browse files Browse the repository at this point in the history
The regex uses anchors, while all of the language
configs packaged with helix don't use them.
  • Loading branch information
divarvel authored and the-mikedavis committed Jan 13, 2023
1 parent 1f6809c commit b633139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/src/languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = " " }
Expand Down

0 comments on commit b633139

Please sign in to comment.