mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
book: fix the injection-regex example
The regex uses anchors, while all of the language configs packaged with helix don't use them.
This commit is contained in:
parent
1f6809c9ce
commit
b6331394a3
@ -35,7 +35,7 @@ ## Language configuration
|
|||||||
[[language]]
|
[[language]]
|
||||||
name = "mylang"
|
name = "mylang"
|
||||||
scope = "source.mylang"
|
scope = "source.mylang"
|
||||||
injection-regex = "^mylang$"
|
injection-regex = "mylang"
|
||||||
file-types = ["mylang", "myl"]
|
file-types = ["mylang", "myl"]
|
||||||
comment-token = "#"
|
comment-token = "#"
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
Loading…
Reference in New Issue
Block a user