Cloudwatch: Add comment and regexp to TokenTypes interface (#71399)

* Cloudwatch: Add comment and regexp to TokenTypes interface

* fix lint
This commit is contained in:
Kevin Yu
2023-07-11 14:43:08 -07:00
committed by GitHub
parent 340f55fa15
commit a2a890e85b
6 changed files with 12 additions and 0 deletions
@@ -12,4 +12,6 @@ export const SQLTokenTypes: TokenTypes = {
Number: 'number.sql',
String: 'string.sql',
Variable: 'variable.sql',
Comment: 'comment.sql',
Regexp: 'regexp.sql',
};
@@ -24,6 +24,8 @@ export class DynamicLabelsCompletionItemProvider implements Completeable {
Number: 'number.cloudwatch-dynamicLabels',
String: 'string.cloudwatch-dynamicLabels',
Variable: 'variable.cloudwatch-dynamicLabels',
Comment: 'comment.cloudwatch-dynamicLabels',
Regexp: 'regexp.cloudwatch-dynamicLabels',
};
}
@@ -12,4 +12,6 @@ export const LogsTokenTypes: TokenTypes = {
Number: 'number.cloudwatch-logs',
String: 'string.cloudwatch-logs',
Variable: 'variable.cloudwatch-logs',
Comment: 'comment.cloudwatch-logs',
Regexp: 'regexp.cloudwatch-logs',
};
@@ -12,4 +12,6 @@ export const MetricMathTokenTypes: TokenTypes = {
Number: 'number.cloudwatch-MetricMath',
String: 'string.cloudwatch-MetricMath',
Variable: 'variable.cloudwatch-MetricMath',
Comment: 'comment.cloudwatch-MetricMath',
Regexp: 'regexp.cloudwatch-MetricMath',
};
@@ -40,6 +40,8 @@ export class CompletionItemProvider implements Completeable {
Number: 'number',
String: 'string',
Variable: 'variable',
Comment: 'comment',
Regexp: 'regexp',
};
}
@@ -14,6 +14,8 @@ export interface TokenTypes {
Number: string;
String: string;
Variable: string;
Comment: string;
Regexp: string;
}
export enum StatementPosition {