struct

LSP::DocumentHighlight

Inherits JSON::Serializable < LSP::Initializer < Struct < Value < Object

A document highlight is a range inside a text document which deserves special attention, usually an occurrence of a symbol.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

kind

The highlight kind, defaulting to Text.

Source
kind=(kind : DocumentHighlightKind | Nil)

The highlight kind, defaulting to Text.

Source
range

The range this highlight applies to.

Source
range=(range : Range)

The range this highlight applies to.

Source