@@ -29,6 +29,16 @@ export const LocationFunction = createToken({
2929 pattern : Lexer . NA ,
3030} ) ;
3131
32+ export const FieldsFunction = createToken ( {
33+ name : 'FieldsFunction' ,
34+ pattern : Lexer . NA ,
35+ } ) ;
36+
37+ export const FieldsFunctionParamIdentifier = createToken ( {
38+ name : 'FieldsFunctionParamIdentifier' ,
39+ pattern : Lexer . NA ,
40+ } ) ;
41+
3242export const OtherFunction = createToken ( {
3343 name : 'OtherFunction' ,
3444 pattern : Lexer . NA ,
@@ -393,6 +403,14 @@ export const Geolocation = createToken({
393403 categories : [ LocationFunction , Identifier ] ,
394404} ) ;
395405
406+ // FIELDS FUNCTIONS
407+ export const Fields = createToken ( {
408+ name : 'FIELDS' ,
409+ pattern : / F I E L D S / i,
410+ longer_alt : Identifier ,
411+ categories : [ FieldsFunction , Identifier ] ,
412+ } ) ;
413+
396414// OTHER FUNCTIONS
397415export const Format = createToken ( {
398416 name : 'FORMAT' ,
@@ -425,6 +443,28 @@ export const Grouping = createToken({
425443 categories : [ OtherFunction , Identifier ] ,
426444} ) ;
427445
446+ // FIELDS() PARAMETERS
447+ export const All = createToken ( {
448+ name : 'ALL' ,
449+ pattern : / A L L / i,
450+ longer_alt : Identifier ,
451+ categories : [ FieldsFunctionParamIdentifier , Identifier ] ,
452+ } ) ;
453+
454+ export const Custom = createToken ( {
455+ name : 'CUSTOM' ,
456+ pattern : / C U S T O M / i,
457+ longer_alt : Identifier ,
458+ categories : [ FieldsFunctionParamIdentifier , Identifier ] ,
459+ } ) ;
460+
461+ export const Standard = createToken ( {
462+ name : 'STANDARD' ,
463+ pattern : / S T A N D A R D / i,
464+ longer_alt : Identifier ,
465+ categories : [ FieldsFunctionParamIdentifier , Identifier ] ,
466+ } ) ;
467+
428468// DATE LITERALS
429469export const Yesterday = createToken ( {
430470 name : 'YESTERDAY' ,
@@ -908,6 +948,7 @@ export const allTokens = [
908948 Sum ,
909949 Distance ,
910950 Geolocation ,
951+ Fields ,
911952 Format ,
912953 Tolabel ,
913954 ConvertTimeZone ,
@@ -959,6 +1000,10 @@ export const allTokens = [
9591000
9601001 GeolocationUnit ,
9611002
1003+ All ,
1004+ Custom ,
1005+ Standard ,
1006+
9621007 In ,
9631008 NotIn ,
9641009 For ,
0 commit comments