module

Hecr::LSP::Position

Finds the component name under the cursor (0-based CHARACTER offset on one line — callers convert from UTF-16 first). Matches <.local>, </.local>, <Remote.Mod.fun>, </Remote...>.

Constants

COMPONENT_TAG = /<\/?(?:\.|[A-Z][a-zA-Z0-9_.]*\.)([a-z_][a-zA-Z0-9_]*[?!]?)/

Instance methods

component_at(line : String, character : Int32) : String | Nil
Source