@prometheus-io/lezer-promql 0.307.2 → 0.308.0-rc.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/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 = 163,
6
- nan$1 = 164,
5
+ const inf$1 = 167,
6
+ nan$1 = 168,
7
7
  Bool$1 = 1,
8
8
  Ignoring$1 = 2,
9
9
  On$1 = 3,
@@ -31,7 +31,9 @@ const inf$1 = 163,
31
31
  Or$1 = 25,
32
32
  Unless$1 = 26,
33
33
  Start$1 = 27,
34
- End$1 = 28;
34
+ End$1 = 28,
35
+ Smoothed$1 = 29,
36
+ Anchored$1 = 30;
35
37
 
36
38
  // Copyright 2021 The Prometheus Authors
37
39
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -85,6 +87,8 @@ const contextualKeywordTokens = {
85
87
  unless: Unless$1,
86
88
  start: Start$1,
87
89
  end: End$1,
90
+ smoothed: Smoothed$1,
91
+ anchored: Anchored$1,
88
92
  };
89
93
 
90
94
  const extendIdentifier = (value, stack) => {
@@ -115,7 +119,7 @@ const promQLHighLight = styleTags({
115
119
  'Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year':
116
120
  tags.function(tags.variableName),
117
121
  'Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk': tags.operatorKeyword,
118
- 'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End': tags.modifier,
122
+ 'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End Smoothed Anchored': tags.modifier,
119
123
  'And Unless Or': tags.logicOperator,
120
124
  'Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At': tags.operator,
121
125
  UnaryOp: tags.arithmeticOperator,
@@ -126,29 +130,29 @@ const promQLHighLight = styleTags({
126
130
  });
127
131
 
128
132
  // This file was generated by lezer-generator. You probably shouldn't edit it.
129
- const spec_Identifier = {__proto__:null,absent_over_time:345, absent:347, abs:349, acos:351, acosh:353, asin:355, asinh:357, atan:359, atanh:361, avg_over_time:363, ceil:365, changes:367, clamp:369, clamp_max:371, clamp_min:373, cos:375, cosh:377, count_over_time:379, days_in_month:381, day_of_month:383, day_of_week:385, day_of_year:387, deg:389, delta:391, deriv:393, exp:395, first_over_time:397, floor:399, histogram_count:401, histogram_fraction:403, histogram_quantile:405, histogram_stddev:407, histogram_stdvar:409, histogram_sum:411, histogram_avg:413, double_exponential_smoothing:415, hour:417, idelta:419, increase:421, info:423, irate:425, label_replace:427, label_join:429, last_over_time:431, ln:433, log10:435, log2:437, mad_over_time:439, max_over_time:441, min_over_time:443, ts_of_first_over_time:445, ts_of_max_over_time:447, ts_of_min_over_time:449, ts_of_last_over_time:451, minute:453, month:455, pi:457, predict_linear:459, present_over_time:461, quantile_over_time:463, rad:465, rate:467, resets:469, round:471, scalar:473, sgn:475, sin:477, sinh:479, sort:481, sort_desc:483, sort_by_label:485, sort_by_label_desc:487, sqrt:489, stddev_over_time:491, stdvar_over_time:493, sum_over_time:495, tan:497, tanh:499, timestamp:501, time:503, vector:505, year:507};
133
+ const spec_Identifier = {__proto__:null,absent_over_time:353, absent:355, abs:357, acos:359, acosh:361, asin:363, asinh:365, atan:367, atanh:369, avg_over_time:371, ceil:373, changes:375, clamp:377, clamp_max:379, clamp_min:381, cos:383, cosh:385, count_over_time:387, days_in_month:389, day_of_month:391, day_of_week:393, day_of_year:395, deg:397, delta:399, deriv:401, exp:403, first_over_time:405, floor:407, histogram_count:409, histogram_fraction:411, histogram_quantile:413, histogram_stddev:415, histogram_stdvar:417, histogram_sum:419, histogram_avg:421, double_exponential_smoothing:423, hour:425, idelta:427, increase:429, info:431, irate:433, label_replace:435, label_join:437, last_over_time:439, ln:441, log10:443, log2:445, mad_over_time:447, max_over_time:449, min_over_time:451, ts_of_first_over_time:453, ts_of_max_over_time:455, ts_of_min_over_time:457, ts_of_last_over_time:459, minute:461, month:463, pi:465, predict_linear:467, present_over_time:469, quantile_over_time:471, rad:473, rate:475, resets:477, round:479, scalar:481, sgn:483, sin:485, sinh:487, sort:489, sort_desc:491, sort_by_label:493, sort_by_label_desc:495, sqrt:497, stddev_over_time:499, stdvar_over_time:501, sum_over_time:503, tan:505, tanh:507, timestamp:509, time:511, vector:513, year:515};
130
134
  const parser = LRParser.deserialize({
131
135
  version: 14,
132
- states: ":QOYQPOOO(TQPOOOOQO'#C|'#C|O(YQPO'#C{Q(eQQOOOOQO'#De'#DeO(`QPO'#DdOOQO'#F_'#F_O)rQPO'#FdOYQPO'#FaOYQPO'#FcO0vQSO'#FfO1RQQO'#FeOOQO'#Fe'#FeOOQO'#Fy'#FyOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D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#w#x#y$]eROXY#V#u#v#w#x#y$]Q#WRR#p#XQ#m#UQ$`#rR%S$xQ#hZQ$[#lU$m$W$p$}V%O$r%Q%VQ#XRQ#bUR#p#WZ#t#Y#Z#[#]#^Y#s#Y#Z#[#]#^R$a#teUOXY#V#u#v#w#x#y$]eTOXY#V#u#v#w#x#y$]Q#|#_Q#}#`R$z$id^OXY#V#u#v#w#x#y$]R$Q#aeYOXY#V#u#v#w#x#y$]d]OXY#V#u#v#w#x#y$]R#k[Q#jZV$n$W$p$}Q$U#gT$V#h$mR$R#aQ$s$[R%R$sQ$^#oR$v$^S$X#h#jR$q$XQSOQ#dXQ#eYQ#o#VQ$b#uQ$c#vQ$d#wQ$e#xQ$f#yR$u$]Q#u#YQ#v#ZQ#w#[Q#x#]R#y#^",
135
- 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 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 NumberDurationLiteral OffsetExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
136
- maxTerm: 261,
136
+ states: ":^OYQPOOO(TQPOOOOQO'#DO'#DOO(YQPO'#C}Q(eQQOOOOQO'#Dg'#DgO(`QPO'#DfOOQO'#Fa'#FaO)xQPO'#FhOYQPO'#FeOYQPO'#FgO0|QSO'#FjO1XQQO'#FiOOQO'#Fi'#FiOOQO'#F}'#F}OOQO'#Dh'#DhOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgOOQO'#Eh'#EhOOQO'#Ei'#EiOOQO'#Ej'#EjOOQO'#Ek'#EkOOQO'#El'#ElOOQO'#Em'#EmOOQO'#En'#EnOOQO'#E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V#w#x#y#z#{$_R$S#ceYOXY#V#w#x#y#z#{$_d]OXY#V#w#x#y#z#{$_R#m[Q#lZV$p$Y$r%PQ$W#iT$X#j$oR$T#cQ$u$^R%T$uQ$`#qR$x$`S$Z#j#lR$s$ZQSOQ#fXQ#gYQ#q#VQ$d#wQ$e#xQ$f#yQ$g#zQ$h#{R$w$_Q#w#YQ#x#ZQ#y#[Q#z#]R#{#^",
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 NumberDurationLiteral OffsetExpr AnchoredExpr SmoothedExpr ParenExpr SubqueryExpr UnaryExpr UnaryOp VectorSelector LabelMatchers UnquotedLabelMatcher MatchOp EqlSingle EqlRegex NeqRegex QuotedLabelMatcher StepInvariantExpr At AtModifierPreprocessors MetricName",
140
+ maxTerm: 265,
137
141
  nodeProps: [
138
- ["group", -12,31,37,39,54,139,141,142,143,144,145,147,155,"Expr"]
142
+ ["group", -14,33,39,41,56,141,143,144,145,146,147,148,149,151,159,"Expr"]
139
143
  ],
140
144
  propSources: [promQLHighLight],
141
- skippedNodes: [0,29],
145
+ skippedNodes: [0,31],
142
146
  repeatNodeCount: 3,
143
- tokenData: "4k~RwX^#lpq#lqr$ars$tst&luv'Twx'Yxy({yz)Qz{)V{|)[|})c}!O)h!O!P)o!P!Q*u!Q!R*z!R![+u![!]1O!^!_1z!_!`2X!`!a2n!b!c2{!c!}3Q!}#O3h#P#Q3m#Q#R3r#R#S3Q#S#T3w#T#o3Q#o#p4a#q#r4f#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~#qY$l~X^#lpq#l#y#z#l$f$g#l#BY#BZ#l$IS$I_#l$I|$JO#l$JT$JU#l$KV$KW#l&FU&FV#l~$dQ!_!`$j#r#s$o~$oO!V~~$tO$_~~$yWu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f<%lO$t~%hOu~~%kRO;'S$t;'S;=`%t;=`O$t~%yXu~OY$tZr$trs%cs#O$t#O#P%h#P;'S$t;'S;=`&f;=`<%l$t<%lO$t~&iP;=`<%l$t~&qSm~OY&lZ;'S&l;'S;=`&}<%lO&l~'QP;=`<%l&l~'YO}~~'_Wu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u<%lO'Y~'zRO;'S'Y;'S;=`(T;=`O'Y~(YXu~OY'YZw'Ywx%cx#O'Y#O#P'w#P;'S'Y;'S;=`(u;=`<%l'Y<%lO'Y~(xP;=`<%l'Y~)QO$n~~)VO$p~~)[O{~R)cO&jP!OQ~)hO$o~R)oO&iP!PQ~)rP!Q![)u~)zS&k~!Q![)u!g!h*W#R#S)o#X#Y*W~*ZR{|*d}!O*d!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~!Q![/Q~/TQ!Q![/Q#a#b.m~/`P&o~!Q![/c~/fT!Q![/c#W#X-X#[#]-p#a#b.U#g#h.x~/zP&o~!Q![/}~0QU!Q![/}#W#X-X#[#]-p#a#b.U#g#h.x#k#l/Z~0gR!Q![0p!c!i0p#T#Z0p~0uR&o~!Q![0p!c!i0p#T#Z0pV1VT&qS!]R!Q![1f![!]1f!c!}1f#R#S1f#T#o1fR1kT!]R!Q![1f![!]1f!c!}1f#R#S1f#T#o1f~2PP!W~!_!`2S~2XO!V~~2^Q$aP!_!`2d#r#s2iQ2iO!SQ~2nO$b~~2sP!U~!_!`2v~2{O!T~~3QO$f~V3XT!]RuS!Q![3Q![!]1f!c!}3Q#R#S3Q#T#o3Q~3mO&l~~3rO&p~~3wOz~~3zTO#S3w#S#T%c#T;'S3w;'S;=`4Z<%lO3w~4^P;=`<%l3w~4fO&r~~4kO&s~",
144
148
  tokenizers: [0, 1, 2],
145
- topRules: {"PromQL":[0,30],"MetricName":[1,158]},
146
- specialized: [{term: 57, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 57, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 57, get: (value) => spec_Identifier[value] || -1}],
149
+ topRules: {"PromQL":[0,32],"MetricName":[1,162]},
150
+ specialized: [{term: 59, get: (value, stack) => (specializeIdentifier(value) << 1), external: specializeIdentifier},{term: 59, get: (value, stack) => (extendIdentifier(value) << 1) | 1, external: extendIdentifier, extend: true},{term: 59, get: (value) => spec_Identifier[value] || -1}],
147
151
  tokenPrec: 0
148
152
  });
149
153
  // This file was generated by lezer-generator. You probably shouldn't edit it.
150
- const inf = 163,
151
- nan = 164,
154
+ const inf = 167,
155
+ nan = 168,
152
156
  Bool = 1,
153
157
  Ignoring = 2,
154
158
  On = 3,
@@ -177,135 +181,139 @@ const inf = 163,
177
181
  Unless = 26,
178
182
  Start = 27,
179
183
  End = 28,
180
- LineComment = 29,
181
- PromQL = 30,
182
- AggregateExpr = 31,
183
- AggregateOp = 32,
184
- AggregateModifier = 33,
185
- GroupingLabels = 34,
186
- LabelName = 35,
187
- QuotedLabelName = 36,
188
- StringLiteral = 37,
189
- FunctionCallBody = 38,
190
- BinaryExpr = 39,
191
- Pow = 40,
192
- BoolModifier = 41,
193
- MatchingModifierClause = 42,
194
- Mul = 43,
195
- Div = 44,
196
- Mod = 45,
197
- Add = 46,
198
- Sub = 47,
199
- Eql = 48,
200
- Gte = 49,
201
- Gtr = 50,
202
- Lte = 51,
203
- Lss = 52,
204
- Neq = 53,
205
- FunctionCall = 54,
206
- FunctionIdentifier = 55,
207
- AbsentOverTime = 56,
208
- Identifier = 57,
209
- Absent = 58,
210
- Abs = 59,
211
- Acos = 60,
212
- Acosh = 61,
213
- Asin = 62,
214
- Asinh = 63,
215
- Atan = 64,
216
- Atanh = 65,
217
- AvgOverTime = 66,
218
- Ceil = 67,
219
- Changes = 68,
220
- Clamp = 69,
221
- ClampMax = 70,
222
- ClampMin = 71,
223
- Cos = 72,
224
- Cosh = 73,
225
- CountOverTime = 74,
226
- DaysInMonth = 75,
227
- DayOfMonth = 76,
228
- DayOfWeek = 77,
229
- DayOfYear = 78,
230
- Deg = 79,
231
- Delta = 80,
232
- Deriv = 81,
233
- Exp = 82,
234
- FirstOverTime = 83,
235
- Floor = 84,
236
- HistogramCount = 85,
237
- HistogramFraction = 86,
238
- HistogramQuantile = 87,
239
- HistogramStdDev = 88,
240
- HistogramStdVar = 89,
241
- HistogramSum = 90,
242
- HistogramAvg = 91,
243
- DoubleExponentialSmoothing = 92,
244
- Hour = 93,
245
- Idelta = 94,
246
- Increase = 95,
247
- Info = 96,
248
- Irate = 97,
249
- LabelReplace = 98,
250
- LabelJoin = 99,
251
- LastOverTime = 100,
252
- Ln = 101,
253
- Log10 = 102,
254
- Log2 = 103,
255
- MadOverTime = 104,
256
- MaxOverTime = 105,
257
- MinOverTime = 106,
258
- TsOfFirstOverTime = 107,
259
- TsOfMaxOverTime = 108,
260
- TsOfMinOverTime = 109,
261
- TsOfLastOverTime = 110,
262
- Minute = 111,
263
- Month = 112,
264
- Pi = 113,
265
- PredictLinear = 114,
266
- PresentOverTime = 115,
267
- QuantileOverTime = 116,
268
- Rad = 117,
269
- Rate = 118,
270
- Resets = 119,
271
- Round = 120,
272
- Scalar = 121,
273
- Sgn = 122,
274
- Sin = 123,
275
- Sinh = 124,
276
- Sort = 125,
277
- SortDesc = 126,
278
- SortByLabel = 127,
279
- SortByLabelDesc = 128,
280
- Sqrt = 129,
281
- StddevOverTime = 130,
282
- StdvarOverTime = 131,
283
- SumOverTime = 132,
284
- Tan = 133,
285
- Tanh = 134,
286
- Timestamp = 135,
287
- Time = 136,
288
- Vector = 137,
289
- Year = 138,
290
- MatrixSelector = 139,
291
- NumberDurationLiteralInDurationContext = 140,
292
- NumberDurationLiteral = 141,
293
- OffsetExpr = 142,
294
- ParenExpr = 143,
295
- SubqueryExpr = 144,
296
- UnaryExpr = 145,
297
- UnaryOp = 146,
298
- VectorSelector = 147,
299
- LabelMatchers = 148,
300
- UnquotedLabelMatcher = 149,
301
- MatchOp = 150,
302
- EqlSingle = 151,
303
- EqlRegex = 152,
304
- NeqRegex = 153,
305
- QuotedLabelMatcher = 154,
306
- StepInvariantExpr = 155,
307
- At = 156,
308
- AtModifierPreprocessors = 157,
309
- MetricName = 158;
184
+ Smoothed = 29,
185
+ Anchored = 30,
186
+ LineComment = 31,
187
+ PromQL = 32,
188
+ AggregateExpr = 33,
189
+ AggregateOp = 34,
190
+ AggregateModifier = 35,
191
+ GroupingLabels = 36,
192
+ LabelName = 37,
193
+ QuotedLabelName = 38,
194
+ StringLiteral = 39,
195
+ FunctionCallBody = 40,
196
+ BinaryExpr = 41,
197
+ Pow = 42,
198
+ BoolModifier = 43,
199
+ MatchingModifierClause = 44,
200
+ Mul = 45,
201
+ Div = 46,
202
+ Mod = 47,
203
+ Add = 48,
204
+ Sub = 49,
205
+ Eql = 50,
206
+ Gte = 51,
207
+ Gtr = 52,
208
+ Lte = 53,
209
+ Lss = 54,
210
+ Neq = 55,
211
+ FunctionCall = 56,
212
+ FunctionIdentifier = 57,
213
+ AbsentOverTime = 58,
214
+ Identifier = 59,
215
+ Absent = 60,
216
+ Abs = 61,
217
+ Acos = 62,
218
+ Acosh = 63,
219
+ Asin = 64,
220
+ Asinh = 65,
221
+ Atan = 66,
222
+ Atanh = 67,
223
+ AvgOverTime = 68,
224
+ Ceil = 69,
225
+ Changes = 70,
226
+ Clamp = 71,
227
+ ClampMax = 72,
228
+ ClampMin = 73,
229
+ Cos = 74,
230
+ Cosh = 75,
231
+ CountOverTime = 76,
232
+ DaysInMonth = 77,
233
+ DayOfMonth = 78,
234
+ DayOfWeek = 79,
235
+ DayOfYear = 80,
236
+ Deg = 81,
237
+ Delta = 82,
238
+ Deriv = 83,
239
+ Exp = 84,
240
+ FirstOverTime = 85,
241
+ Floor = 86,
242
+ HistogramCount = 87,
243
+ HistogramFraction = 88,
244
+ HistogramQuantile = 89,
245
+ HistogramStdDev = 90,
246
+ HistogramStdVar = 91,
247
+ HistogramSum = 92,
248
+ HistogramAvg = 93,
249
+ DoubleExponentialSmoothing = 94,
250
+ Hour = 95,
251
+ Idelta = 96,
252
+ Increase = 97,
253
+ Info = 98,
254
+ Irate = 99,
255
+ LabelReplace = 100,
256
+ LabelJoin = 101,
257
+ LastOverTime = 102,
258
+ Ln = 103,
259
+ Log10 = 104,
260
+ Log2 = 105,
261
+ MadOverTime = 106,
262
+ MaxOverTime = 107,
263
+ MinOverTime = 108,
264
+ TsOfFirstOverTime = 109,
265
+ TsOfMaxOverTime = 110,
266
+ TsOfMinOverTime = 111,
267
+ TsOfLastOverTime = 112,
268
+ Minute = 113,
269
+ Month = 114,
270
+ Pi = 115,
271
+ PredictLinear = 116,
272
+ PresentOverTime = 117,
273
+ QuantileOverTime = 118,
274
+ Rad = 119,
275
+ Rate = 120,
276
+ Resets = 121,
277
+ Round = 122,
278
+ Scalar = 123,
279
+ Sgn = 124,
280
+ Sin = 125,
281
+ Sinh = 126,
282
+ Sort = 127,
283
+ SortDesc = 128,
284
+ SortByLabel = 129,
285
+ SortByLabelDesc = 130,
286
+ Sqrt = 131,
287
+ StddevOverTime = 132,
288
+ StdvarOverTime = 133,
289
+ SumOverTime = 134,
290
+ Tan = 135,
291
+ Tanh = 136,
292
+ Timestamp = 137,
293
+ Time = 138,
294
+ Vector = 139,
295
+ Year = 140,
296
+ MatrixSelector = 141,
297
+ NumberDurationLiteralInDurationContext = 142,
298
+ NumberDurationLiteral = 143,
299
+ OffsetExpr = 144,
300
+ AnchoredExpr = 145,
301
+ SmoothedExpr = 146,
302
+ ParenExpr = 147,
303
+ SubqueryExpr = 148,
304
+ UnaryExpr = 149,
305
+ UnaryOp = 150,
306
+ VectorSelector = 151,
307
+ LabelMatchers = 152,
308
+ UnquotedLabelMatcher = 153,
309
+ MatchOp = 154,
310
+ EqlSingle = 155,
311
+ EqlRegex = 156,
312
+ NeqRegex = 157,
313
+ QuotedLabelMatcher = 158,
314
+ StepInvariantExpr = 159,
315
+ At = 160,
316
+ AtModifierPreprocessors = 161,
317
+ MetricName = 162;
310
318
 
311
- export { Abs, Absent, AbsentOverTime, Acos, Acosh, Add, AggregateExpr, AggregateModifier, AggregateOp, 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, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prometheus-io/lezer-promql",
3
- "version": "0.307.2",
3
+ "version": "0.308.0-rc.0",
4
4
  "description": "lezer-based PromQL grammar",
5
5
  "main": "dist/index.cjs",
6
6
  "type": "module",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lezer/generator": "^1.8.0",
35
- "@lezer/highlight": "^1.2.1",
36
- "@lezer/lr": "^1.4.2",
37
- "@rollup/plugin-node-resolve": "^16.0.1"
35
+ "@lezer/highlight": "^1.2.3",
36
+ "@lezer/lr": "^1.4.3",
37
+ "@rollup/plugin-node-resolve": "^16.0.3"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@lezer/highlight": "^1.1.2",
package/src/highlight.js CHANGED
@@ -23,7 +23,7 @@ export const promQLHighLight = styleTags({
23
23
  'Abs Absent AbsentOverTime Acos Acosh Asin Asinh Atan Atanh AvgOverTime Ceil Changes Clamp ClampMax ClampMin Cos Cosh CountOverTime DaysInMonth DayOfMonth DayOfWeek DayOfYear Deg Delta Deriv Exp Floor HistogramAvg HistogramCount HistogramFraction HistogramQuantile HistogramSum DoubleExponentialSmoothing Hour Idelta Increase Irate LabelReplace LabelJoin LastOverTime Ln Log10 Log2 MaxOverTime MinOverTime Minute Month Pi PredictLinear PresentOverTime QuantileOverTime Rad Rate Resets Round Scalar Sgn Sin Sinh Sort SortDesc SortByLabel SortByLabelDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Tan Tanh Time Timestamp Vector Year':
24
24
  tags.function(tags.variableName),
25
25
  'Avg Bottomk Count Count_values Group LimitK LimitRatio Max Min Quantile Stddev Stdvar Sum Topk': tags.operatorKeyword,
26
- 'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End': tags.modifier,
26
+ 'By Without Bool On Ignoring GroupLeft GroupRight Offset Start End Smoothed Anchored': tags.modifier,
27
27
  'And Unless Or': tags.logicOperator,
28
28
  'Sub Add Mul Mod Div Atan2 Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow At': tags.operator,
29
29
  UnaryOp: tags.arithmeticOperator,