module

Hecr::LSP::AutoClose

Tag auto-closing via on-type formatting.

Constants

NO_CLOSE = Compiler::Tokenizer::VOID_ELEMENTS

Instance methods

after_gt(text_upto_cursor : String) : String | Nil

After typing '>': the close tag to insert at the cursor, if the text before it just completed a non-void, non-self-closing open tag.

Source
after_slash(text_upto_cursor : String) : String | Nil

After typing '/': if preceded by '<', the completion "name>" for the innermost unclosed tag.

Source