Sublime Forum

Closing <script> tags with the close-tag functionality

#1

I’ve posted a possible bug under General Discussions instead of here. Here’s the link:
https://forum.sublimetext.com/t/closing-script-tags-with-the-close-tag-functionality/4166/1
How would I go about finding out if this is a bug and if it is, how would I ‘log’ it?

( Could a mod move the post and to the Technical Support section and delete this? )

0 Likes

#2

Everything after the start of
is source.js (it’s just the way it works).

I guess if it’s really bothering you, you can add a keyboard binding for alt+.

    {
    "keys": "alt+."], "command": "insert_snippet",
    "args": { "contents": "</script>" },
    "context":
    
        {"key": "selector", "operator": "equal", "operand": "source.js", "match_all": true }
    ]
    }

EDIT: Just to clarify, I’m not going as far as saying that this isn’t fixable via the tmLanguage file as well.

0 Likes