diff options
author | Clément Delafargue | 2023-01-13 15:15:39 +0000 |
---|---|---|
committer | Michael Davis | 2023-01-13 15:42:05 +0000 |
commit | b6331394a3f341ad21f8fad3e6e0b93becda9ce5 (patch) | |
tree | 7dc0434bad0573592f7fb378c2f9f400111aacc0 /book/src | |
parent | 1f6809c9ce8f4b864b3754111b8673ca282f67f5 (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.md | 2 |
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 = " " } |