From 6eb6e3ceca9250d69ef8238b7714b8cf809327eb Mon Sep 17 00:00:00 2001 From: David Schach Date: Wed, 18 Oct 2023 18:17:21 -0700 Subject: [PATCH] minor updates to punctuation, relevance --- dist/apex.es.min.js | 20 ++++++++++---------- dist/apex.min.js | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/dist/apex.es.min.js b/dist/apex.es.min.js index 94aad72..8a49eee 100644 --- a/dist/apex.es.min.js +++ b/dist/apex.es.min.js @@ -8,7 +8,7 @@ match:/(-?)\b[0-9_]+(F|f|D|d|M|m)\b/},{ match:/\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\b/}],relevance:0 },c=["false","true","null"],n=["ApexPages|10","AppLauncher","Approval","Auth","Cache","Canvas","ChatterAnswers|10","CommercePayments|10","ConnectApi|10","Database","Datacloud|10","Dataweave|10","DataSource|10","Dom","EventBus|10","ExternalService","Flow","Functions","Invocable","KbManagement|10","Label","LxScheduler|10","Messaging","Metadata","Pref_center|10","Process","QuickAction","Reports","RichMessageing","Savepoint","SchedulableContext","Schema","Search","Sfc|10","Sfdc_Checkout|10","sfdc_surveys|10","Site","Support","System","TerritoryMgmt|10","Test","Trigger|10","TxnSecurity|10","Type","UserProvisioning|10","VisualEditor|10","Wave|10"],r=[{ match:[/\b/,t.either("AccessLevel","Address","Answers","ApexPages","Approval","Assert","AsyncInfo","AsyncOptions","BusinessHours","Cases","Collator","Continuation","Cookie","Crypto","Database","Date","Datetime","Decimal","Domain","DomainCreator","DomainParser","EmailMessages","EncodingUtil","EventBus","Exception","FeatureManagement","FlexQueue","Formula","FormulaRecalcFieldError","FormulaRecalcResult","Http","HttpRequest","HttpResponse","Ideas","JSON","JSONGenerator","JSONParser","Label","Limits","Location","Matcher","Math","Messaging","MultiStaticResourceCalloutMock","Network","OrgLimit","OrgLimits","Packaging","PageReference","Pattern","QueueableDuplicateSignature","QueueableDuplicateSignature.Builder","QuickAction","Request","ResetPasswordResult","RestContext","RestRequest","RestResponse","Schema","Search","Security","SelectOption","Site","SObject","SObjectAccessDecision","StaticResourceCalloutMock","TimeZone","Type","URL","UserInfo","UserManagement","Version","WebServiceCallout","XmlStreamReader","XmlStreamWriter"),/\./], -scope:{2:"title"},relevance:10}],i=[{ +scope:{2:"title"},relevance:9}],i=[{ match:[/\b/,t.either("Callable","Comparable","Comparator","HttpCalloutMock","InstallHandler","Queueable","QueueableContext","SandboxPostCopy","Schedulable","SchedulableContext","StubProvider","UninstallHandler","WebServiceMock"),/\b/], scope:{2:"title.class.inherited"},relevance:10},{ match:[/\b/,t.either(...n),/\./,a,/\b/],scope:{2:"built_in",4:"title.class"}},{ @@ -17,14 +17,14 @@ match:[/\bSystem/,".",a,/(?=\.)/],scope:{1:"built_in",3:"title.class"}, relevance:10},{ match:[/\b/,t.either("AccessType","DomainType","JSONToken","LoggingLevel","Quiddity","TriggerOperation"),/\./,a,/\b/], scope:{2:"built_in",4:"type"}}],o={ -match:t.either(/-/,/--/,/~/,/\*/,/\*=/,/\/=/,/%/,/\+/,/\+\+/,/<>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./), -scope:"operator",relevance:0},l={match:t.either("{","}",",","<",">",/\./), -scope:"punctuation",relevance:0 -},b=e.COMMENT("//",/[$\n]/),p=e.COMMENT("/\\*","\\*/",{relevance:0,contains:[{ -begin:/\w+@/,relevance:0},{scope:"doctag",begin:"@[A-Za-z_]+"},{begin:"`", -end:"`",excludeBegin:!0,excludeEnd:!0,scope:"code", -contains:[e.BACKSLASH_ESCAPE],relevance:0},e.APOS_STRING_MODE,{ -match:[/(?<=@param)/,/\s+/,/\w+/],scope:{3:"variable"}}]}),u={ +match:t.either(/-/,/--/,/~/,/\*/,/\*=/,/\/=/,/%[^%]/,/\+/,/\+\+/,/<>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./), +scope:"operator",relevance:0},l={match:t.either("{","}",",",/\./), +scope:"punctuation",relevance:0},b=e.COMMENT("//",/[$\n]/,{relevance:0 +}),p=e.COMMENT("/\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{ +scope:"doctag",begin:"@[A-Za-z_]+"},{begin:"`",end:"`",excludeBegin:!0, +excludeEnd:!0,scope:"code",contains:[e.BACKSLASH_ESCAPE],relevance:0 +},e.APOS_STRING_MODE,{match:[/(?<=@param)/,/\s+/,/\w+/],scope:{3:"variable"}}] +}),u={ match:[/(?","\x3c!--","!DOCTYPE",//], +illegal:["","\x3c!--","!DOCTYPE",//,/<%/,"<%#","%%>","<%%"], contains:[m,g,T,{relevance:10,match:/\b(with|without|inherited)\s+sharing\b/, scope:"keyword"},S,h,p,b,{match:/\b(switch\s+on|as\s+user|as\s+system)\b/, relevance:8,scope:"keyword"},d,{ diff --git a/dist/apex.min.js b/dist/apex.min.js index f8a5c0b..29b5d05 100644 --- a/dist/apex.min.js +++ b/dist/apex.min.js @@ -8,7 +8,7 @@ match:/(-?)\b[0-9_]+(F|f|D|d|M|m)\b/},{ match:/\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\b/}],relevance:0 },c=["false","true","null"],n=["ApexPages|10","AppLauncher","Approval","Auth","Cache","Canvas","ChatterAnswers|10","CommercePayments|10","ConnectApi|10","Database","Datacloud|10","Dataweave|10","DataSource|10","Dom","EventBus|10","ExternalService","Flow","Functions","Invocable","KbManagement|10","Label","LxScheduler|10","Messaging","Metadata","Pref_center|10","Process","QuickAction","Reports","RichMessageing","Savepoint","SchedulableContext","Schema","Search","Sfc|10","Sfdc_Checkout|10","sfdc_surveys|10","Site","Support","System","TerritoryMgmt|10","Test","Trigger|10","TxnSecurity|10","Type","UserProvisioning|10","VisualEditor|10","Wave|10"],i=[{ match:[/\b/,t.either("AccessLevel","Address","Answers","ApexPages","Approval","Assert","AsyncInfo","AsyncOptions","BusinessHours","Cases","Collator","Continuation","Cookie","Crypto","Database","Date","Datetime","Decimal","Domain","DomainCreator","DomainParser","EmailMessages","EncodingUtil","EventBus","Exception","FeatureManagement","FlexQueue","Formula","FormulaRecalcFieldError","FormulaRecalcResult","Http","HttpRequest","HttpResponse","Ideas","JSON","JSONGenerator","JSONParser","Label","Limits","Location","Matcher","Math","Messaging","MultiStaticResourceCalloutMock","Network","OrgLimit","OrgLimits","Packaging","PageReference","Pattern","QueueableDuplicateSignature","QueueableDuplicateSignature.Builder","QuickAction","Request","ResetPasswordResult","RestContext","RestRequest","RestResponse","Schema","Search","Security","SelectOption","Site","SObject","SObjectAccessDecision","StaticResourceCalloutMock","TimeZone","Type","URL","UserInfo","UserManagement","Version","WebServiceCallout","XmlStreamReader","XmlStreamWriter"),/\./], -scope:{2:"title"},relevance:10}],r=[{ +scope:{2:"title"},relevance:9}],r=[{ match:[/\b/,t.either("Callable","Comparable","Comparator","HttpCalloutMock","InstallHandler","Queueable","QueueableContext","SandboxPostCopy","Schedulable","SchedulableContext","StubProvider","UninstallHandler","WebServiceMock"),/\b/], scope:{2:"title.class.inherited"},relevance:10},{ match:[/\b/,t.either(...n),/\./,a,/\b/],scope:{2:"built_in",4:"title.class"}},{ @@ -17,14 +17,14 @@ match:[/\bSystem/,".",a,/(?=\.)/],scope:{1:"built_in",3:"title.class"}, relevance:10},{ match:[/\b/,t.either("AccessType","DomainType","JSONToken","LoggingLevel","Quiddity","TriggerOperation"),/\./,a,/\b/], scope:{2:"built_in",4:"type"}}],o={ -match:t.either(/-/,/--/,/~/,/\*/,/\*=/,/\/=/,/%/,/\+/,/\+\+/,/<>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./), -scope:"operator",relevance:0},l={match:t.either("{","}",",","<",">",/\./), -scope:"punctuation",relevance:0 -},b=e.COMMENT("//",/[$\n]/),p=e.COMMENT("/\\*","\\*/",{relevance:0,contains:[{ -begin:/\w+@/,relevance:0},{scope:"doctag",begin:"@[A-Za-z_]+"},{begin:"`", -end:"`",excludeBegin:!0,excludeEnd:!0,scope:"code", -contains:[e.BACKSLASH_ESCAPE],relevance:0},e.APOS_STRING_MODE,{ -match:[/(?<=@param)/,/\s+/,/\w+/],scope:{3:"variable"}}]}),u={ +match:t.either(/-/,/--/,/~/,/\*/,/\*=/,/\/=/,/%[^%]/,/\+/,/\+\+/,/<>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./), +scope:"operator",relevance:0},l={match:t.either("{","}",",",/\./), +scope:"punctuation",relevance:0},b=e.COMMENT("//",/[$\n]/,{relevance:0 +}),p=e.COMMENT("/\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{ +scope:"doctag",begin:"@[A-Za-z_]+"},{begin:"`",end:"`",excludeBegin:!0, +excludeEnd:!0,scope:"code",contains:[e.BACKSLASH_ESCAPE],relevance:0 +},e.APOS_STRING_MODE,{match:[/(?<=@param)/,/\s+/,/\w+/],scope:{3:"variable"}}] +}),u={ match:[/(?","\x3c!--","!DOCTYPE",//], +illegal:["","\x3c!--","!DOCTYPE",//,/<%/,"<%#","%%>","<%%"], contains:[m,R,T,{relevance:10,match:/\b(with|without|inherited)\s+sharing\b/, scope:"keyword"},S,h,p,b,{match:/\b(switch\s+on|as\s+user|as\s+system)\b/, relevance:8,scope:"keyword"},d,{