Skip to content

Commit 68e0cab

Browse files
authored
Enable editor::WrapSelectionsInTag action in HTML+ERB files (#191)
I believe this is what's needed to enable the `editor::WrapSelectionsInTag` action in HTML+ERB files. It worked on initial release, but I think at some point the implementation was generalized by letting languages specify `wrap_characters`, so currently it only works in pure HTML files.
1 parent 3ed9aea commit 68e0cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

languages/html-erb/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name = "HTML+ERB"
22
grammar = "embedded_template"
33
path_suffixes = ["html.erb"]
44
autoclose_before = ">})"
5+
wrap_characters = { start_prefix = "<", start_suffix = ">", end_prefix = "</", end_suffix = ">" }
56
brackets = [{ start = "<", end = ">", close = true, newline = true }]
67
block_comment = ["<%#", "%>"]
78
word_characters = ["?", "!"]

0 commit comments

Comments
 (0)