Represents a list of ranges that can be edited together along with a word pattern to describe valid range contents.

Constructor

new(ranges:Array<Range>, ?wordPattern:RegExp)

Create a new linked editing ranges object.

Parameters:

ranges

A list of ranges that can be edited together

wordPattern

An optional word pattern that describes valid contents for the given ranges

Variables

read onlyranges:Array<Range>

A list of ranges that can be edited together. The ranges must have identical length and text content. The ranges cannot overlap.

read onlywordPattern:Null<RegExp>

An optional word pattern that describes valid contents for the given ranges. If no pattern is provided, the language configuration's word pattern will be used.