diff --git a/src/lang-promql/index.ts b/src/lang-promql/index.ts index e21d3d7..a14e5ae 100644 --- a/src/lang-promql/index.ts +++ b/src/lang-promql/index.ts @@ -23,4 +23,4 @@ export { PrometheusClient } from './client'; export { CompleteConfiguration, CompleteStrategy } from './complete'; export { LintStrategy } from './lint'; -export { PromQLExtension, LanguageType } from './promql'; +export { PromQLExtension, LanguageType, promQLLanguage } from './promql'; diff --git a/src/lang-promql/promql.ts b/src/lang-promql/promql.ts index 27560a1..ec720d3 100644 --- a/src/lang-promql/promql.ts +++ b/src/lang-promql/promql.ts @@ -33,7 +33,7 @@ export enum LanguageType { MetricName = 'MetricName', } -function promQLLanguage(top: LanguageType) { +export function promQLLanguage(top: LanguageType) { return LezerLanguage.define({ parser: parser.configure({ top: top,