mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Cloudwatch: Add comment and regexp to TokenTypes interface (#71399)
* Cloudwatch: Add comment and regexp to TokenTypes interface * fix lint
This commit is contained in:
@@ -12,4 +12,6 @@ export const SQLTokenTypes: TokenTypes = {
|
||||
Number: 'number.sql',
|
||||
String: 'string.sql',
|
||||
Variable: 'variable.sql',
|
||||
Comment: 'comment.sql',
|
||||
Regexp: 'regexp.sql',
|
||||
};
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user