2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
import { Color, HSLA } from '../../../base/common/color.js';
6
>
import { IPosition } from '../core/position.js';
7
>
import { IRange } from '../core/range.js';
8
>
import { IColor, IColorInformation } from '../languages.js';
9
>
10
>
export interface IDocumentColorComputerTarget {
11
>
getValue(): string;
12
>
positionAt(offset: number): IPosition;
13
>
findMatches(regex: RegExp): RegExpMatchArray[];
14
>
}
15
>
16
function _parseCaptureGroups(captureGroups: IterableIterator<string>) {
17
const values = [];