@prometheus-io/lezer-promql 0.308.0 → 0.311.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +154 -9
- package/dist/index.cjs +210 -184
- package/dist/index.d.ts +11 -1
- package/dist/index.es.js +201 -185
- package/package.json +2 -2
- package/src/highlight.js +1 -1
- package/src/parser.js +155 -145
- package/src/parser.terms.js +144 -134
- package/src/promql.grammar +29 -1
- package/src/tokens.js +74 -68
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { LRParser } from '@lezer/lr';
|
|
|
2
2
|
import { styleTags, tags } from '@lezer/highlight';
|
|
3
3
|
|
|
4
4
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
5
|
-
const inf$1 =
|
|
6
|
-
nan$1 =
|
|
5
|
+
const inf$1 = 177,
|
|
6
|
+
nan$1 = 178,
|
|
7
7
|
Bool$1 = 1,
|
|
8
8
|
Ignoring$1 = 2,
|
|
9
9
|
On$1 = 3,
|
|
@@ -33,9 +33,12 @@ const inf$1 = 167,
|
|
|
33
33
|
Start$1 = 27,
|
|
34
34
|
End$1 = 28,
|
|
35
35
|
Smoothed$1 = 29,
|
|
36
|
-
Anchored$1 = 30
|
|
36
|
+
Anchored$1 = 30,
|
|
37
|
+
Fill$1 = 31,
|
|
38
|
+
FillLeft$1 = 32,
|
|
39
|
+
FillRight$1 = 33;
|
|
37
40
|
|
|
38
|
-
// Copyright
|
|
41
|
+
// Copyright The Prometheus Authors
|
|
39
42
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
40
43
|
// you may not use this file except in compliance with the License.
|
|
41
44
|
// You may obtain a copy of the License at
|
|
@@ -50,52 +53,55 @@ const inf$1 = 167,
|
|
|
50
53
|
|
|
51
54
|
|
|
52
55
|
const keywordTokens = {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
inf: inf$1,
|
|
57
|
+
nan: nan$1,
|
|
58
|
+
bool: Bool$1,
|
|
59
|
+
ignoring: Ignoring$1,
|
|
60
|
+
on: On$1,
|
|
61
|
+
group_left: GroupLeft$1,
|
|
62
|
+
group_right: GroupRight$1,
|
|
63
|
+
offset: Offset$1,
|
|
61
64
|
};
|
|
62
65
|
|
|
63
66
|
const specializeIdentifier = (value, stack) => {
|
|
64
|
-
|
|
67
|
+
return keywordTokens[value.toLowerCase()] || -1;
|
|
65
68
|
};
|
|
66
69
|
|
|
67
70
|
const contextualKeywordTokens = {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
71
|
+
avg: Avg$1,
|
|
72
|
+
atan2: Atan2$1,
|
|
73
|
+
bottomk: Bottomk$1,
|
|
74
|
+
count: Count$1,
|
|
75
|
+
count_values: CountValues$1,
|
|
76
|
+
group: Group$1,
|
|
77
|
+
max: Max$1,
|
|
78
|
+
min: Min$1,
|
|
79
|
+
quantile: Quantile$1,
|
|
80
|
+
limitk: LimitK$1,
|
|
81
|
+
limit_ratio: LimitRatio$1,
|
|
82
|
+
stddev: Stddev$1,
|
|
83
|
+
stdvar: Stdvar$1,
|
|
84
|
+
sum: Sum$1,
|
|
85
|
+
topk: Topk$1,
|
|
86
|
+
by: By$1,
|
|
87
|
+
without: Without$1,
|
|
88
|
+
and: And$1,
|
|
89
|
+
or: Or$1,
|
|
90
|
+
unless: Unless$1,
|
|
91
|
+
start: Start$1,
|
|
92
|
+
end: End$1,
|
|
93
|
+
smoothed: Smoothed$1,
|
|
94
|
+
anchored: Anchored$1,
|
|
95
|
+
fill: Fill$1,
|
|
96
|
+
fill_left: FillLeft$1,
|
|
97
|
+
fill_right: FillRight$1,
|
|
92
98
|
};
|
|
93
99
|
|
|
94
100
|
const extendIdentifier = (value, stack) => {
|
|
95
|
-
|
|
101
|
+
return contextualKeywordTokens[value.toLowerCase()] || -1;
|
|
96
102
|
};
|
|
97
103
|
|
|
98
|
-
// Copyright
|
|
104
|
+
// Copyright The Prometheus Authors
|
|
99
105
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
100
106
|
// you may not use this file except in compliance with the License.
|
|
101
107
|
// You may obtain a copy of the License at
|
|
@@ -130,29 +136,29 @@ const promQLHighLight = styleTags({
|
|
|
130
136
|
});
|
|
131
137
|
|
|
132
138
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
133
|
-
const spec_Identifier = {__proto__:null,absent_over_time:
|
|
139
|
+
const spec_Identifier = {__proto__:null,absent_over_time:379, absent:381, abs:383, acos:385, acosh:387, asin:389, asinh:391, atan:393, atanh:395, avg_over_time:397, ceil:399, changes:401, clamp:403, clamp_max:405, clamp_min:407, cos:409, cosh:411, count_over_time:413, days_in_month:415, day_of_month:417, day_of_week:419, day_of_year:421, deg:423, delta:425, deriv:427, exp:429, first_over_time:431, floor:433, histogram_count:435, histogram_fraction:437, histogram_quantile:439, histogram_quantiles:441, histogram_stddev:443, histogram_stdvar:445, histogram_sum:447, histogram_avg:449, double_exponential_smoothing:451, hour:453, idelta:455, increase:457, info:459, irate:461, label_replace:463, label_join:465, last_over_time:467, ln:469, log10:471, log2:473, mad_over_time:475, max_over_time:477, min_over_time:479, ts_of_first_over_time:481, ts_of_max_over_time:483, ts_of_min_over_time:485, ts_of_last_over_time:487, minute:489, month:491, pi:493, predict_linear:495, present_over_time:497, quantile_over_time:499, rad:501, rate:503, resets:505, round:507, scalar:509, sgn:511, sin:513, sinh:515, sort:517, sort_desc:519, sort_by_label:521, sort_by_label_desc:523, sqrt:525, stddev_over_time:527, stdvar_over_time:529, sum_over_time:531, tan:533, tanh:535, timestamp:537, time:539, vector:541, year:543};
|
|
134
140
|
const parser = LRParser.deserialize({
|
|
135
141
|
version: 14,
|
|
136
|
-
states: "
|
|
137
|
-
stateData: "!
|
|
138
|
-
goto: "
|
|
139
|
-
nodeNames: "⚠ Bool Ignoring On GroupLeft GroupRight Offset Atan2 Avg Bottomk Count CountValues Group Max Min Quantile LimitK LimitRatio Stddev Stdvar Sum Topk By Without And Or Unless Start End Smoothed Anchored LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext
|
|
140
|
-
maxTerm:
|
|
142
|
+
states: "<zOYQPOOO(WQPOOOOQO'#DR'#DRO(]QPO'#DQOOQO'#D`'#D`O(hQPO'#FrQ/oQQOOOOQO'#Dq'#DqO(cQPO'#DpOYQPO'#FoOYQPO'#FqO1YQSO'#FtO1eQQO'#FsOOQO'#Fs'#FsOOQO'#GX'#GXOO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Stddev Stdvar Sum Topk By Without And Or Unless Start End Smoothed Anchored Fill FillLeft FillRight LineComment PromQL AggregateExpr AggregateOp AggregateModifier GroupingLabels LabelName QuotedLabelName StringLiteral FunctionCallBody BinaryExpr Pow BoolModifier MatchingModifierClause FillModifier FillClause NumberDurationLiteral FillLeftClause FillRightClause Mul Div Mod Add Sub Eql Gte Gtr TrimUpper TrimLower Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp FirstOverTime Floor HistogramCount HistogramFraction HistogramQuantile HistogramQuantiles HistogramStdDev HistogramStdVar HistogramSum HistogramAvg DoubleExponentialSmoothing Hour Idelta Increase Info Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MadOverTime MaxOverTime MinOverTime TsOfFirstOverTime TsOfMaxOverTime TsOfMinOverTime TsOfLastOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Timestamp Time Vector Year MatrixSelector NumberDurationLiteralInDurationContext OffsetExpr AnchoredExpr SmoothedExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
|
|
146
|
+
maxTerm: 276,
|
|
141
147
|
nodeProps: [
|
|
142
|
-
["group", -14,
|
|
148
|
+
["group", -14,36,42,44,50,66,152,154,155,156,157,158,159,161,169,"Expr"]
|
|
143
149
|
],
|
|
144
150
|
propSources: [promQLHighLight],
|
|
145
|
-
skippedNodes: [0,
|
|
151
|
+
skippedNodes: [0,34],
|
|
146
152
|
repeatNodeCount: 3,
|
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/u~,pP!Q![,s~,xT%S~!O!P)o!Q![,s!g!h*W#R#S,m#X#Y*W~-^P%S~!Q![-a~-dS!Q![-a#[#]-p#a#b.U#g#h.x~-uP%S~!Q![-x~-{R!Q![-x#a#b.U#g#h.x~.ZQ%S~!Q![.a#g#h.s~.dR!Q![.a#a#b.m#g#h.x~.pP#g#h.s~.xO%S~~.}P%S~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P%S~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP%S~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR%S~!Q![0p!c!i0p#T#Z0pV1VT&|S!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!gR!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PQ!b~!P!Q2V!_!`2[~2[O!_~~2aO!a~~2fQ$kP!_!`2l#r#s2qQ2qO![Q~2vO$l~~2{Q!^~!P!Q3R!_!`3W~3WO!`~~3]O!]~~3bO$p~V3iT!gRxS!Q![3b![!]1f!c!}3b#R#S3b#T#o3b~3}O&z~~4SO&{~~4XO}~~4[TO#S4X#S#T%c#T;'S4X;'S;=`4k<%lO4X~4nP;=`<%l4X~4vO&}~~4{O'O~",
|
|
148
154
|
tokenizers: [0, 1, 2],
|
|
149
|
-
topRules: {"PromQL":[0,
|
|
150
|
-
specialized: [{term:
|
|
155
|
+
topRules: {"PromQL":[0,35],"MetricName":[1,172]},
|
|
156
|
+
specialized: [{term: 69, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 69, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 69, get: (value) => spec_Identifier[value] || -1}],
|
|
151
157
|
tokenPrec: 0
|
|
152
158
|
});
|
|
153
159
|
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
154
|
-
const inf =
|
|
155
|
-
nan =
|
|
160
|
+
const inf = 177,
|
|
161
|
+
nan = 178,
|
|
156
162
|
Bool = 1,
|
|
157
163
|
Ignoring = 2,
|
|
158
164
|
On = 3,
|
|
@@ -183,137 +189,147 @@ const inf = 167,
|
|
|
183
189
|
End = 28,
|
|
184
190
|
Smoothed = 29,
|
|
185
191
|
Anchored = 30,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
192
|
+
Fill = 31,
|
|
193
|
+
FillLeft = 32,
|
|
194
|
+
FillRight = 33,
|
|
195
|
+
LineComment = 34,
|
|
196
|
+
PromQL = 35,
|
|
197
|
+
AggregateExpr = 36,
|
|
198
|
+
AggregateOp = 37,
|
|
199
|
+
AggregateModifier = 38,
|
|
200
|
+
GroupingLabels = 39,
|
|
201
|
+
LabelName = 40,
|
|
202
|
+
QuotedLabelName = 41,
|
|
203
|
+
StringLiteral = 42,
|
|
204
|
+
FunctionCallBody = 43,
|
|
205
|
+
BinaryExpr = 44,
|
|
206
|
+
Pow = 45,
|
|
207
|
+
BoolModifier = 46,
|
|
208
|
+
MatchingModifierClause = 47,
|
|
209
|
+
FillModifier = 48,
|
|
210
|
+
FillClause = 49,
|
|
211
|
+
NumberDurationLiteral = 50,
|
|
212
|
+
FillLeftClause = 51,
|
|
213
|
+
FillRightClause = 52,
|
|
214
|
+
Mul = 53,
|
|
215
|
+
Div = 54,
|
|
216
|
+
Mod = 55,
|
|
217
|
+
Add = 56,
|
|
218
|
+
Sub = 57,
|
|
219
|
+
Eql = 58,
|
|
220
|
+
Gte = 59,
|
|
221
|
+
Gtr = 60,
|
|
222
|
+
TrimUpper = 61,
|
|
223
|
+
TrimLower = 62,
|
|
224
|
+
Lte = 63,
|
|
225
|
+
Lss = 64,
|
|
226
|
+
Neq = 65,
|
|
227
|
+
FunctionCall = 66,
|
|
228
|
+
FunctionIdentifier = 67,
|
|
229
|
+
AbsentOverTime = 68,
|
|
230
|
+
Identifier = 69,
|
|
231
|
+
Absent = 70,
|
|
232
|
+
Abs = 71,
|
|
233
|
+
Acos = 72,
|
|
234
|
+
Acosh = 73,
|
|
235
|
+
Asin = 74,
|
|
236
|
+
Asinh = 75,
|
|
237
|
+
Atan = 76,
|
|
238
|
+
Atanh = 77,
|
|
239
|
+
AvgOverTime = 78,
|
|
240
|
+
Ceil = 79,
|
|
241
|
+
Changes = 80,
|
|
242
|
+
Clamp = 81,
|
|
243
|
+
ClampMax = 82,
|
|
244
|
+
ClampMin = 83,
|
|
245
|
+
Cos = 84,
|
|
246
|
+
Cosh = 85,
|
|
247
|
+
CountOverTime = 86,
|
|
248
|
+
DaysInMonth = 87,
|
|
249
|
+
DayOfMonth = 88,
|
|
250
|
+
DayOfWeek = 89,
|
|
251
|
+
DayOfYear = 90,
|
|
252
|
+
Deg = 91,
|
|
253
|
+
Delta = 92,
|
|
254
|
+
Deriv = 93,
|
|
255
|
+
Exp = 94,
|
|
256
|
+
FirstOverTime = 95,
|
|
257
|
+
Floor = 96,
|
|
258
|
+
HistogramCount = 97,
|
|
259
|
+
HistogramFraction = 98,
|
|
260
|
+
HistogramQuantile = 99,
|
|
261
|
+
HistogramQuantiles = 100,
|
|
262
|
+
HistogramStdDev = 101,
|
|
263
|
+
HistogramStdVar = 102,
|
|
264
|
+
HistogramSum = 103,
|
|
265
|
+
HistogramAvg = 104,
|
|
266
|
+
DoubleExponentialSmoothing = 105,
|
|
267
|
+
Hour = 106,
|
|
268
|
+
Idelta = 107,
|
|
269
|
+
Increase = 108,
|
|
270
|
+
Info = 109,
|
|
271
|
+
Irate = 110,
|
|
272
|
+
LabelReplace = 111,
|
|
273
|
+
LabelJoin = 112,
|
|
274
|
+
LastOverTime = 113,
|
|
275
|
+
Ln = 114,
|
|
276
|
+
Log10 = 115,
|
|
277
|
+
Log2 = 116,
|
|
278
|
+
MadOverTime = 117,
|
|
279
|
+
MaxOverTime = 118,
|
|
280
|
+
MinOverTime = 119,
|
|
281
|
+
TsOfFirstOverTime = 120,
|
|
282
|
+
TsOfMaxOverTime = 121,
|
|
283
|
+
TsOfMinOverTime = 122,
|
|
284
|
+
TsOfLastOverTime = 123,
|
|
285
|
+
Minute = 124,
|
|
286
|
+
Month = 125,
|
|
287
|
+
Pi = 126,
|
|
288
|
+
PredictLinear = 127,
|
|
289
|
+
PresentOverTime = 128,
|
|
290
|
+
QuantileOverTime = 129,
|
|
291
|
+
Rad = 130,
|
|
292
|
+
Rate = 131,
|
|
293
|
+
Resets = 132,
|
|
294
|
+
Round = 133,
|
|
295
|
+
Scalar = 134,
|
|
296
|
+
Sgn = 135,
|
|
297
|
+
Sin = 136,
|
|
298
|
+
Sinh = 137,
|
|
299
|
+
Sort = 138,
|
|
300
|
+
SortDesc = 139,
|
|
301
|
+
SortByLabel = 140,
|
|
302
|
+
SortByLabelDesc = 141,
|
|
303
|
+
Sqrt = 142,
|
|
304
|
+
StddevOverTime = 143,
|
|
305
|
+
StdvarOverTime = 144,
|
|
306
|
+
SumOverTime = 145,
|
|
307
|
+
Tan = 146,
|
|
308
|
+
Tanh = 147,
|
|
309
|
+
Timestamp = 148,
|
|
310
|
+
Time = 149,
|
|
311
|
+
Vector = 150,
|
|
312
|
+
Year = 151,
|
|
313
|
+
MatrixSelector = 152,
|
|
314
|
+
NumberDurationLiteralInDurationContext = 153,
|
|
315
|
+
OffsetExpr = 154,
|
|
316
|
+
AnchoredExpr = 155,
|
|
317
|
+
SmoothedExpr = 156,
|
|
318
|
+
ParenExpr = 157,
|
|
319
|
+
SubqueryExpr = 158,
|
|
320
|
+
UnaryExpr = 159,
|
|
321
|
+
UnaryOp = 160,
|
|
322
|
+
VectorSelector = 161,
|
|
323
|
+
LabelMatchers = 162,
|
|
324
|
+
UnquotedLabelMatcher = 163,
|
|
325
|
+
MatchOp = 164,
|
|
326
|
+
EqlSingle = 165,
|
|
327
|
+
EqlRegex = 166,
|
|
328
|
+
NeqRegex = 167,
|
|
329
|
+
QuotedLabelMatcher = 168,
|
|
330
|
+
StepInvariantExpr = 169,
|
|
331
|
+
At = 170,
|
|
332
|
+
AtModifierPreprocessors = 171,
|
|
333
|
+
MetricName = 172;
|
|
318
334
|
|
|
319
|
-
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, Anchored, AnchoredExpr, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, FirstOverTime, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Info, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Smoothed, SmoothedExpr, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, TsOfFirstOverTime, TsOfLastOverTime, TsOfMaxOverTime, TsOfMinOverTime, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
|
335
|
+
export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, Anchored, AnchoredExpr, And, Asin, Asinh, At, AtModifierPreprocessors, Atan, Atan2, Atanh, Avg, AvgOverTime, BinaryExpr, Bool, BoolModifier, Bottomk, By, Ceil, Changes, Clamp, ClampMax, ClampMin, Cos, Cosh, Count, CountOverTime, CountValues, DayOfMonth, DayOfWeek, DayOfYear, DaysInMonth, Deg, Delta, Deriv, Div, DoubleExponentialSmoothing, End, Eql, EqlRegex, EqlSingle, Exp, Fill, FillClause, FillLeft, FillLeftClause, FillModifier, FillRight, FillRightClause, FirstOverTime, Floor, FunctionCall, FunctionCallBody, FunctionIdentifier, Group, GroupLeft, GroupRight, GroupingLabels, Gte, Gtr, HistogramAvg, HistogramCount, HistogramFraction, HistogramQuantile, HistogramQuantiles, HistogramStdDev, HistogramStdVar, HistogramSum, Hour, Idelta, Identifier, Ignoring, Increase, Info, Irate, LabelJoin, LabelMatchers, LabelName, LabelReplace, LastOverTime, LimitK, LimitRatio, LineComment, Ln, Log10, Log2, Lss, Lte, MadOverTime, MatchOp, MatchingModifierClause, MatrixSelector, Max, MaxOverTime, MetricName, Min, MinOverTime, Minute, Mod, Month, Mul, Neq, NeqRegex, NumberDurationLiteral, NumberDurationLiteralInDurationContext, Offset, OffsetExpr, On, Or, ParenExpr, Pi, Pow, PredictLinear, PresentOverTime, PromQL, Quantile, QuantileOverTime, QuotedLabelMatcher, QuotedLabelName, Rad, Rate, Resets, Round, Scalar, Sgn, Sin, Sinh, Smoothed, SmoothedExpr, Sort, SortByLabel, SortByLabelDesc, SortDesc, Sqrt, Start, Stddev, StddevOverTime, Stdvar, StdvarOverTime, StepInvariantExpr, StringLiteral, Sub, SubqueryExpr, Sum, SumOverTime, Tan, Tanh, Time, Timestamp, Topk, TrimLower, TrimUpper, TsOfFirstOverTime, TsOfLastOverTime, TsOfMaxOverTime, TsOfMinOverTime, UnaryExpr, UnaryOp, Unless, UnquotedLabelMatcher, Vector, VectorSelector, Without, Year, inf, nan, parser };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prometheus-io/lezer-promql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.311.0",
|
|
4
4
|
"description": "lezer-based PromQL grammar",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"type": "module",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lezer/generator": "^1.8.0",
|
|
35
35
|
"@lezer/highlight": "^1.2.3",
|
|
36
|
-
"@lezer/lr": "^1.4.
|
|
36
|
+
"@lezer/lr": "^1.4.8",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^16.0.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
package/src/highlight.js
CHANGED