postcss-calc 10.0.2 → 10.1.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/package.json +7 -7
- package/src/lib/reducer.js +2 -0
- package/src/lib/transform.js +1 -1
- package/src/parser.d.ts +3 -1
- package/src/parser.js +172 -144
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-calc",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "PostCSS plugin to reduce calc()",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"node": "^18.12 || ^20.9 || >=22.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/node": "^22.
|
|
31
|
-
"eslint": "^9.
|
|
30
|
+
"@types/node": "^22.10.2",
|
|
31
|
+
"eslint": "^9.17.0",
|
|
32
32
|
"eslint-config-prettier": "^9.1.0",
|
|
33
33
|
"jison-gho": "0.6.1-216",
|
|
34
|
-
"postcss": "^8.4.
|
|
35
|
-
"prettier": "^3.
|
|
36
|
-
"typescript": "~5.
|
|
34
|
+
"postcss": "^8.4.49",
|
|
35
|
+
"prettier": "^3.4.2",
|
|
36
|
+
"typescript": "~5.7.2"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"postcss-selector-parser": "^
|
|
39
|
+
"postcss-selector-parser": "^7.0.0",
|
|
40
40
|
"postcss-value-parser": "^4.2.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
package/src/lib/reducer.js
CHANGED
package/src/lib/transform.js
CHANGED
|
@@ -7,7 +7,7 @@ const { parser } = require('../parser.js');
|
|
|
7
7
|
const reducer = require('./reducer.js');
|
|
8
8
|
const stringifier = require('./stringifier.js');
|
|
9
9
|
|
|
10
|
-
const MATCH_CALC = /((?:-(moz|webkit)-)?calc)/i;
|
|
10
|
+
const MATCH_CALC = /((?:-(moz|webkit)-)?calc(?!-))/i;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @param {string} value
|
package/src/parser.d.ts
CHANGED
package/src/parser.js
CHANGED
|
@@ -632,6 +632,7 @@ symbols_: {
|
|
|
632
632
|
"FREQ": 14,
|
|
633
633
|
"FUNCTION": 10,
|
|
634
634
|
"LENGTH": 11,
|
|
635
|
+
"LHS": 51,
|
|
635
636
|
"LPAREN": 4,
|
|
636
637
|
"LVBS": 39,
|
|
637
638
|
"LVHS": 23,
|
|
@@ -640,10 +641,11 @@ symbols_: {
|
|
|
640
641
|
"LVMINS": 31,
|
|
641
642
|
"LVWS": 27,
|
|
642
643
|
"MUL": 8,
|
|
643
|
-
"NUMBER":
|
|
644
|
-
"PERCENTAGE":
|
|
644
|
+
"NUMBER": 54,
|
|
645
|
+
"PERCENTAGE": 53,
|
|
645
646
|
"REMS": 20,
|
|
646
647
|
"RES": 15,
|
|
648
|
+
"RLHS": 52,
|
|
647
649
|
"RPAREN": 5,
|
|
648
650
|
"SUB": 7,
|
|
649
651
|
"SVBS": 38,
|
|
@@ -660,12 +662,12 @@ symbols_: {
|
|
|
660
662
|
"VMAXS": 33,
|
|
661
663
|
"VMINS": 29,
|
|
662
664
|
"VWS": 25,
|
|
663
|
-
"dimension":
|
|
665
|
+
"dimension": 58,
|
|
664
666
|
"error": 2,
|
|
665
|
-
"expression":
|
|
666
|
-
"function":
|
|
667
|
-
"math_expression":
|
|
668
|
-
"number":
|
|
667
|
+
"expression": 55,
|
|
668
|
+
"function": 57,
|
|
669
|
+
"math_expression": 56,
|
|
670
|
+
"number": 59
|
|
669
671
|
},
|
|
670
672
|
terminals_: {
|
|
671
673
|
1: "EOF",
|
|
@@ -718,8 +720,10 @@ terminals_: {
|
|
|
718
720
|
48: "CQBS",
|
|
719
721
|
49: "CQMINS",
|
|
720
722
|
50: "CQMAXS",
|
|
721
|
-
51: "
|
|
722
|
-
52: "
|
|
723
|
+
51: "LHS",
|
|
724
|
+
52: "RLHS",
|
|
725
|
+
53: "PERCENTAGE",
|
|
726
|
+
54: "NUMBER"
|
|
723
727
|
},
|
|
724
728
|
TERROR: 2,
|
|
725
729
|
EOF: 1,
|
|
@@ -825,14 +829,14 @@ TERROR: 2,
|
|
|
825
829
|
},
|
|
826
830
|
productions_: bp({
|
|
827
831
|
pop: u([
|
|
828
|
-
53,
|
|
829
|
-
s,
|
|
830
|
-
[54, 9],
|
|
831
832
|
55,
|
|
832
833
|
s,
|
|
833
|
-
[56,
|
|
834
|
+
[56, 9],
|
|
835
|
+
57,
|
|
836
|
+
s,
|
|
837
|
+
[58, 45],
|
|
834
838
|
s,
|
|
835
|
-
[
|
|
839
|
+
[59, 3]
|
|
836
840
|
]),
|
|
837
841
|
rule: u([
|
|
838
842
|
2,
|
|
@@ -840,7 +844,7 @@ productions_: bp({
|
|
|
840
844
|
s,
|
|
841
845
|
[3, 5],
|
|
842
846
|
s,
|
|
843
|
-
[1,
|
|
847
|
+
[1, 47],
|
|
844
848
|
2,
|
|
845
849
|
2,
|
|
846
850
|
c,
|
|
@@ -1159,32 +1163,44 @@ case 51:
|
|
|
1159
1163
|
break;
|
|
1160
1164
|
|
|
1161
1165
|
case 52:
|
|
1166
|
+
/*! Production:: dimension : LHS */
|
|
1167
|
+
|
|
1168
|
+
this.$ = { type: 'LhValue', value: parseFloat(yyvstack[yysp]), unit: 'lh' };
|
|
1169
|
+
break;
|
|
1170
|
+
|
|
1171
|
+
case 53:
|
|
1172
|
+
/*! Production:: dimension : RLHS */
|
|
1173
|
+
|
|
1174
|
+
this.$ = { type: 'RlhValue', value: parseFloat(yyvstack[yysp]), unit: 'rlh' };
|
|
1175
|
+
break;
|
|
1176
|
+
|
|
1177
|
+
case 54:
|
|
1162
1178
|
/*! Production:: dimension : PERCENTAGE */
|
|
1163
1179
|
|
|
1164
1180
|
this.$ = { type: 'PercentageValue', value: parseFloat(yyvstack[yysp]), unit: '%' };
|
|
1165
1181
|
break;
|
|
1166
1182
|
|
|
1167
|
-
case
|
|
1183
|
+
case 55:
|
|
1168
1184
|
/*! Production:: dimension : ADD dimension */
|
|
1169
1185
|
|
|
1170
1186
|
var prev = yyvstack[yysp]; this.$ = prev;
|
|
1171
1187
|
break;
|
|
1172
1188
|
|
|
1173
|
-
case
|
|
1189
|
+
case 56:
|
|
1174
1190
|
/*! Production:: dimension : SUB dimension */
|
|
1175
1191
|
|
|
1176
1192
|
var prev = yyvstack[yysp]; prev.value *= -1; this.$ = prev;
|
|
1177
1193
|
break;
|
|
1178
1194
|
|
|
1179
|
-
case
|
|
1195
|
+
case 57:
|
|
1180
1196
|
/*! Production:: number : NUMBER */
|
|
1181
|
-
case
|
|
1197
|
+
case 58:
|
|
1182
1198
|
/*! Production:: number : ADD NUMBER */
|
|
1183
1199
|
|
|
1184
1200
|
this.$ = { type: 'Number', value: parseFloat(yyvstack[yysp]) };
|
|
1185
1201
|
break;
|
|
1186
1202
|
|
|
1187
|
-
case
|
|
1203
|
+
case 59:
|
|
1188
1204
|
/*! Production:: number : SUB NUMBER */
|
|
1189
1205
|
|
|
1190
1206
|
this.$ = { type: 'Number', value: parseFloat(yyvstack[yysp]) * -1 };
|
|
@@ -1194,24 +1210,24 @@ case 57:
|
|
|
1194
1210
|
},
|
|
1195
1211
|
table: bt({
|
|
1196
1212
|
len: u([
|
|
1197
|
-
|
|
1213
|
+
54,
|
|
1198
1214
|
1,
|
|
1199
1215
|
5,
|
|
1200
1216
|
1,
|
|
1201
|
-
|
|
1217
|
+
53,
|
|
1202
1218
|
s,
|
|
1203
|
-
[0,
|
|
1204
|
-
|
|
1205
|
-
|
|
1219
|
+
[0, 47],
|
|
1220
|
+
47,
|
|
1221
|
+
47,
|
|
1206
1222
|
0,
|
|
1207
1223
|
0,
|
|
1208
1224
|
s,
|
|
1209
|
-
[
|
|
1225
|
+
[53, 5],
|
|
1210
1226
|
5,
|
|
1211
1227
|
0,
|
|
1212
1228
|
0,
|
|
1213
|
-
|
|
1214
|
-
|
|
1229
|
+
46,
|
|
1230
|
+
46,
|
|
1215
1231
|
0,
|
|
1216
1232
|
0,
|
|
1217
1233
|
6,
|
|
@@ -1227,37 +1243,37 @@ table: bt({
|
|
|
1227
1243
|
6,
|
|
1228
1244
|
7,
|
|
1229
1245
|
s,
|
|
1230
|
-
[10,
|
|
1246
|
+
[10, 50, 1],
|
|
1231
1247
|
1,
|
|
1232
1248
|
1,
|
|
1233
1249
|
s,
|
|
1234
1250
|
[6, 4, 1],
|
|
1235
1251
|
4,
|
|
1236
1252
|
c,
|
|
1237
|
-
[
|
|
1253
|
+
[61, 49],
|
|
1238
1254
|
c,
|
|
1239
|
-
[
|
|
1255
|
+
[60, 4],
|
|
1240
1256
|
6,
|
|
1241
1257
|
7,
|
|
1242
1258
|
c,
|
|
1243
|
-
[
|
|
1244
|
-
|
|
1259
|
+
[50, 44],
|
|
1260
|
+
58,
|
|
1245
1261
|
c,
|
|
1246
|
-
[
|
|
1262
|
+
[47, 47],
|
|
1247
1263
|
c,
|
|
1248
|
-
[
|
|
1264
|
+
[147, 53],
|
|
1249
1265
|
c,
|
|
1250
|
-
[
|
|
1266
|
+
[53, 212],
|
|
1251
1267
|
s,
|
|
1252
1268
|
[5, 5, 1],
|
|
1253
1269
|
c,
|
|
1254
|
-
[
|
|
1270
|
+
[317, 45],
|
|
1255
1271
|
c,
|
|
1256
|
-
[
|
|
1257
|
-
|
|
1272
|
+
[363, 46],
|
|
1273
|
+
58,
|
|
1258
1274
|
1,
|
|
1259
1275
|
c,
|
|
1260
|
-
[
|
|
1276
|
+
[98, 5],
|
|
1261
1277
|
c,
|
|
1262
1278
|
[6, 6],
|
|
1263
1279
|
c,
|
|
@@ -1265,26 +1281,26 @@ table: bt({
|
|
|
1265
1281
|
]),
|
|
1266
1282
|
type: u([
|
|
1267
1283
|
s,
|
|
1268
|
-
[2,
|
|
1284
|
+
[2, 49],
|
|
1269
1285
|
s,
|
|
1270
1286
|
[0, 5],
|
|
1271
1287
|
1,
|
|
1272
1288
|
s,
|
|
1273
|
-
[2,
|
|
1289
|
+
[2, 55],
|
|
1274
1290
|
s,
|
|
1275
1291
|
[0, 4],
|
|
1276
1292
|
c,
|
|
1277
|
-
[
|
|
1293
|
+
[50, 47],
|
|
1278
1294
|
c,
|
|
1279
|
-
[
|
|
1295
|
+
[47, 93],
|
|
1280
1296
|
c,
|
|
1281
|
-
[
|
|
1297
|
+
[147, 53],
|
|
1282
1298
|
c,
|
|
1283
|
-
[
|
|
1299
|
+
[53, 215],
|
|
1284
1300
|
c,
|
|
1285
|
-
[
|
|
1301
|
+
[316, 47],
|
|
1286
1302
|
c,
|
|
1287
|
-
[
|
|
1303
|
+
[46, 18]
|
|
1288
1304
|
]),
|
|
1289
1305
|
state: u([
|
|
1290
1306
|
1,
|
|
@@ -1292,30 +1308,30 @@ table: bt({
|
|
|
1292
1308
|
5,
|
|
1293
1309
|
6,
|
|
1294
1310
|
7,
|
|
1295
|
-
|
|
1311
|
+
61,
|
|
1296
1312
|
c,
|
|
1297
1313
|
[4, 3],
|
|
1298
|
-
|
|
1299
|
-
64,
|
|
1314
|
+
62,
|
|
1300
1315
|
66,
|
|
1316
|
+
68,
|
|
1301
1317
|
c,
|
|
1302
1318
|
[6, 3],
|
|
1303
|
-
|
|
1319
|
+
69,
|
|
1304
1320
|
c,
|
|
1305
1321
|
[4, 3],
|
|
1306
|
-
|
|
1322
|
+
70,
|
|
1307
1323
|
c,
|
|
1308
1324
|
[4, 3],
|
|
1309
|
-
|
|
1325
|
+
71,
|
|
1310
1326
|
c,
|
|
1311
1327
|
[4, 3],
|
|
1312
|
-
|
|
1328
|
+
72,
|
|
1313
1329
|
c,
|
|
1314
1330
|
[22, 5]
|
|
1315
1331
|
]),
|
|
1316
1332
|
mode: u([
|
|
1317
1333
|
s,
|
|
1318
|
-
[1,
|
|
1334
|
+
[1, 536],
|
|
1319
1335
|
s,
|
|
1320
1336
|
[2, 4],
|
|
1321
1337
|
c,
|
|
@@ -1326,70 +1342,70 @@ table: bt({
|
|
|
1326
1342
|
goto: u([
|
|
1327
1343
|
3,
|
|
1328
1344
|
4,
|
|
1329
|
-
|
|
1330
|
-
|
|
1345
|
+
52,
|
|
1346
|
+
53,
|
|
1331
1347
|
s,
|
|
1332
|
-
[8,
|
|
1348
|
+
[8, 44, 1],
|
|
1333
1349
|
s,
|
|
1334
|
-
[
|
|
1350
|
+
[54, 7, 1],
|
|
1335
1351
|
c,
|
|
1336
|
-
[
|
|
1337
|
-
|
|
1338
|
-
|
|
1352
|
+
[55, 49],
|
|
1353
|
+
64,
|
|
1354
|
+
65,
|
|
1339
1355
|
c,
|
|
1340
|
-
[
|
|
1341
|
-
|
|
1356
|
+
[46, 43],
|
|
1357
|
+
63,
|
|
1342
1358
|
c,
|
|
1343
|
-
[
|
|
1344
|
-
|
|
1359
|
+
[46, 45],
|
|
1360
|
+
67,
|
|
1345
1361
|
c,
|
|
1346
|
-
[
|
|
1362
|
+
[141, 49],
|
|
1347
1363
|
c,
|
|
1348
|
-
[
|
|
1349
|
-
|
|
1364
|
+
[49, 196],
|
|
1365
|
+
73,
|
|
1350
1366
|
c,
|
|
1351
|
-
[
|
|
1367
|
+
[392, 4],
|
|
1352
1368
|
c,
|
|
1353
|
-
[
|
|
1369
|
+
[296, 45],
|
|
1354
1370
|
c,
|
|
1355
|
-
[
|
|
1371
|
+
[45, 45],
|
|
1356
1372
|
s,
|
|
1357
1373
|
[3, 4],
|
|
1358
|
-
|
|
1359
|
-
|
|
1374
|
+
58,
|
|
1375
|
+
59,
|
|
1360
1376
|
s,
|
|
1361
1377
|
[4, 4],
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1378
|
+
58,
|
|
1379
|
+
59,
|
|
1380
|
+
74,
|
|
1365
1381
|
c,
|
|
1366
|
-
[
|
|
1382
|
+
[107, 4]
|
|
1367
1383
|
])
|
|
1368
1384
|
}),
|
|
1369
1385
|
defaultActions: bda({
|
|
1370
1386
|
idx: u([
|
|
1371
1387
|
s,
|
|
1372
|
-
[5,
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
69,
|
|
1388
|
+
[5, 47, 1],
|
|
1389
|
+
54,
|
|
1390
|
+
55,
|
|
1391
|
+
62,
|
|
1392
|
+
63,
|
|
1393
|
+
66,
|
|
1394
|
+
67,
|
|
1395
|
+
70,
|
|
1381
1396
|
71,
|
|
1382
|
-
|
|
1397
|
+
73,
|
|
1398
|
+
74
|
|
1383
1399
|
]),
|
|
1384
1400
|
goto: u([
|
|
1385
1401
|
s,
|
|
1386
|
-
[8,
|
|
1387
|
-
|
|
1402
|
+
[8, 47, 1],
|
|
1403
|
+
57,
|
|
1388
1404
|
1,
|
|
1389
|
-
|
|
1405
|
+
55,
|
|
1406
|
+
58,
|
|
1390
1407
|
56,
|
|
1391
|
-
|
|
1392
|
-
57,
|
|
1408
|
+
59,
|
|
1393
1409
|
5,
|
|
1394
1410
|
6,
|
|
1395
1411
|
7,
|
|
@@ -1433,7 +1449,7 @@ parse: function parse(input) {
|
|
|
1433
1449
|
var TERROR = this.TERROR;
|
|
1434
1450
|
var EOF = this.EOF;
|
|
1435
1451
|
var ERROR_RECOVERY_TOKEN_DISCARD_COUNT = (this.options.errorRecoveryTokenDiscardCount | 0) || 3;
|
|
1436
|
-
var NO_ACTION = [0,
|
|
1452
|
+
var NO_ACTION = [0, 75 /* === table.length :: ensures that anyone using this new state will fail dramatically! */];
|
|
1437
1453
|
|
|
1438
1454
|
var lexer;
|
|
1439
1455
|
if (this.__lexer__) {
|
|
@@ -3904,101 +3920,109 @@ EOF: 1,
|
|
|
3904
3920
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)cqmax\b */
|
|
3905
3921
|
40: 50,
|
|
3906
3922
|
|
|
3923
|
+
/*! Conditions:: INITIAL */
|
|
3924
|
+
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)lh\b */
|
|
3925
|
+
41: 51,
|
|
3926
|
+
|
|
3927
|
+
/*! Conditions:: INITIAL */
|
|
3928
|
+
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)rlh\b */
|
|
3929
|
+
42: 52,
|
|
3930
|
+
|
|
3907
3931
|
/*! Conditions:: INITIAL */
|
|
3908
3932
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)cm\b */
|
|
3909
|
-
|
|
3933
|
+
43: 11,
|
|
3910
3934
|
|
|
3911
3935
|
/*! Conditions:: INITIAL */
|
|
3912
3936
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)mm\b */
|
|
3913
|
-
|
|
3937
|
+
44: 11,
|
|
3914
3938
|
|
|
3915
3939
|
/*! Conditions:: INITIAL */
|
|
3916
3940
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)Q\b */
|
|
3917
|
-
|
|
3941
|
+
45: 11,
|
|
3918
3942
|
|
|
3919
3943
|
/*! Conditions:: INITIAL */
|
|
3920
3944
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)in\b */
|
|
3921
|
-
|
|
3945
|
+
46: 11,
|
|
3922
3946
|
|
|
3923
3947
|
/*! Conditions:: INITIAL */
|
|
3924
3948
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)pt\b */
|
|
3925
|
-
|
|
3949
|
+
47: 11,
|
|
3926
3950
|
|
|
3927
3951
|
/*! Conditions:: INITIAL */
|
|
3928
3952
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)pc\b */
|
|
3929
|
-
|
|
3953
|
+
48: 11,
|
|
3930
3954
|
|
|
3931
3955
|
/*! Conditions:: INITIAL */
|
|
3932
3956
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)px\b */
|
|
3933
|
-
|
|
3957
|
+
49: 11,
|
|
3934
3958
|
|
|
3935
3959
|
/*! Conditions:: INITIAL */
|
|
3936
3960
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)deg\b */
|
|
3937
|
-
|
|
3961
|
+
50: 12,
|
|
3938
3962
|
|
|
3939
3963
|
/*! Conditions:: INITIAL */
|
|
3940
3964
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)grad\b */
|
|
3941
|
-
|
|
3965
|
+
51: 12,
|
|
3942
3966
|
|
|
3943
3967
|
/*! Conditions:: INITIAL */
|
|
3944
3968
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)rad\b */
|
|
3945
|
-
|
|
3969
|
+
52: 12,
|
|
3946
3970
|
|
|
3947
3971
|
/*! Conditions:: INITIAL */
|
|
3948
3972
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)turn\b */
|
|
3949
|
-
|
|
3973
|
+
53: 12,
|
|
3950
3974
|
|
|
3951
3975
|
/*! Conditions:: INITIAL */
|
|
3952
3976
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)s\b */
|
|
3953
|
-
|
|
3977
|
+
54: 13,
|
|
3954
3978
|
|
|
3955
3979
|
/*! Conditions:: INITIAL */
|
|
3956
3980
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)ms\b */
|
|
3957
|
-
|
|
3981
|
+
55: 13,
|
|
3958
3982
|
|
|
3959
3983
|
/*! Conditions:: INITIAL */
|
|
3960
3984
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)Hz\b */
|
|
3961
|
-
|
|
3985
|
+
56: 14,
|
|
3962
3986
|
|
|
3963
3987
|
/*! Conditions:: INITIAL */
|
|
3964
3988
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)kHz\b */
|
|
3965
|
-
|
|
3989
|
+
57: 14,
|
|
3966
3990
|
|
|
3967
3991
|
/*! Conditions:: INITIAL */
|
|
3968
3992
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)dpi\b */
|
|
3969
|
-
|
|
3993
|
+
58: 15,
|
|
3970
3994
|
|
|
3971
3995
|
/*! Conditions:: INITIAL */
|
|
3972
3996
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)dpcm\b */
|
|
3973
|
-
|
|
3997
|
+
59: 15,
|
|
3974
3998
|
|
|
3975
3999
|
/*! Conditions:: INITIAL */
|
|
3976
4000
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)dppx\b */
|
|
3977
|
-
|
|
4001
|
+
60: 15,
|
|
3978
4002
|
|
|
3979
4003
|
/*! Conditions:: INITIAL */
|
|
3980
4004
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)% */
|
|
3981
|
-
|
|
4005
|
+
61: 53,
|
|
3982
4006
|
|
|
3983
4007
|
/*! Conditions:: INITIAL */
|
|
3984
4008
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)\b */
|
|
3985
|
-
|
|
4009
|
+
62: 54,
|
|
3986
4010
|
|
|
3987
4011
|
/*! Conditions:: INITIAL */
|
|
3988
4012
|
/*! Rule:: (([0-9]+(\.[0-9]+)?|\.[0-9]+)(e(\+|-)[0-9]+)?)-?([a-zA-Z_]|[\240-\377]|(\\[0-9a-fA-F]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-fA-F]))([a-zA-Z0-9_-]|[\240-\377]|(\\[0-9a-fA-F]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-fA-F]))*\b */
|
|
3989
|
-
|
|
4013
|
+
63: 16,
|
|
3990
4014
|
|
|
3991
4015
|
/*! Conditions:: INITIAL */
|
|
3992
4016
|
/*! Rule:: \( */
|
|
3993
|
-
|
|
4017
|
+
64: 4,
|
|
3994
4018
|
|
|
3995
4019
|
/*! Conditions:: INITIAL */
|
|
3996
4020
|
/*! Rule:: \) */
|
|
3997
|
-
|
|
4021
|
+
65: 5,
|
|
3998
4022
|
|
|
3999
4023
|
/*! Conditions:: INITIAL */
|
|
4000
4024
|
/*! Rule:: $ */
|
|
4001
|
-
|
|
4025
|
+
66: 1
|
|
4002
4026
|
},
|
|
4003
4027
|
|
|
4004
4028
|
rules: [
|
|
@@ -4043,30 +4067,32 @@ EOF: 1,
|
|
|
4043
4067
|
/* 38: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cqb\b)/i,
|
|
4044
4068
|
/* 39: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cqmin\b)/i,
|
|
4045
4069
|
/* 40: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cqmax\b)/i,
|
|
4046
|
-
/* 41: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4047
|
-
/* 42: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4048
|
-
/* 43: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4049
|
-
/* 44: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4050
|
-
/* 45: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4051
|
-
/* 46: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4052
|
-
/* 47: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4053
|
-
/* 48: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4054
|
-
/* 49: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4055
|
-
/* 50: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4056
|
-
/* 51: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4057
|
-
/* 52: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4058
|
-
/* 53: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4059
|
-
/* 54: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4060
|
-
/* 55: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4061
|
-
/* 56: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4062
|
-
/* 57: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4063
|
-
/* 58: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4064
|
-
/* 59: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4065
|
-
/* 60: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)\b)/i,
|
|
4066
|
-
/* 61: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)
|
|
4067
|
-
/* 62: */ /^(
|
|
4068
|
-
/* 63: */ /^(
|
|
4069
|
-
/* 64: */ /^(
|
|
4070
|
+
/* 41: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)lh\b)/i,
|
|
4071
|
+
/* 42: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rlh\b)/i,
|
|
4072
|
+
/* 43: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)cm\b)/i,
|
|
4073
|
+
/* 44: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)mm\b)/i,
|
|
4074
|
+
/* 45: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Q\b)/i,
|
|
4075
|
+
/* 46: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)in\b)/i,
|
|
4076
|
+
/* 47: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pt\b)/i,
|
|
4077
|
+
/* 48: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)pc\b)/i,
|
|
4078
|
+
/* 49: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)px\b)/i,
|
|
4079
|
+
/* 50: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)deg\b)/i,
|
|
4080
|
+
/* 51: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)grad\b)/i,
|
|
4081
|
+
/* 52: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)rad\b)/i,
|
|
4082
|
+
/* 53: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)turn\b)/i,
|
|
4083
|
+
/* 54: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)s\b)/i,
|
|
4084
|
+
/* 55: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)ms\b)/i,
|
|
4085
|
+
/* 56: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)Hz\b)/i,
|
|
4086
|
+
/* 57: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)kHz\b)/i,
|
|
4087
|
+
/* 58: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpi\b)/i,
|
|
4088
|
+
/* 59: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dpcm\b)/i,
|
|
4089
|
+
/* 60: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)dppx\b)/i,
|
|
4090
|
+
/* 61: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)%)/i,
|
|
4091
|
+
/* 62: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)\b)/i,
|
|
4092
|
+
/* 63: */ /^(?:((\d+(\.\d+)?|\.\d+)(e(\+|-)\d+)?)-?([^\W\d]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))([\w\-]|[ -ÿ]|(\\[\dA-Fa-f]{1,6}(\r\n|[\t\n\f\r ])?|\\[^\d\n\f\rA-Fa-f]))*\b)/i,
|
|
4093
|
+
/* 64: */ /^(?:\()/i,
|
|
4094
|
+
/* 65: */ /^(?:\))/i,
|
|
4095
|
+
/* 66: */ /^(?:$)/i
|
|
4070
4096
|
],
|
|
4071
4097
|
|
|
4072
4098
|
conditions: {
|
|
@@ -4136,7 +4162,9 @@ EOF: 1,
|
|
|
4136
4162
|
61,
|
|
4137
4163
|
62,
|
|
4138
4164
|
63,
|
|
4139
|
-
64
|
|
4165
|
+
64,
|
|
4166
|
+
65,
|
|
4167
|
+
66
|
|
4140
4168
|
],
|
|
4141
4169
|
|
|
4142
4170
|
inclusive: true
|