Mojolicious icon indicating copy to clipboard operation
Mojolicious copied to clipboard

Completions for the three template tags insert a stray closing parenthesis

Open dpc00 opened this issue 1 month ago • 0 comments

Claude reports:

The three <% completions in mojo.sublime-completions insert a stray ) after the closing %>.

Sublime Text build 4215, Windows, "Mojolicious" 2016.01.29 from Package Control. The first three entries are:

{ "trigger": "<%", "contents": "<% ${1} %>)" },
{ "trigger": "<%=", "contents": "<%= ${1} %>)" },
{ "trigger": "<%==", "contents": "<%== ${1} %>)" },

Inserting the <%= contents with insert_snippet into an empty tab gives <%= %>) (8 characters, the last is the )). The same text is on master. Mojolicious templates would then contain <%= $x %>) and print a literal ) in the output.

Fix (not run): remove the trailing ) from those three contents values.

Not reported as a defect, only noted: the completions file lists the trigger layout twice.

dpc00 avatar Oct 25 '26 04:10 dpc00