Skip to content

Commit

Permalink
minor updates to punctuation, relevance
Browse files Browse the repository at this point in the history
  • Loading branch information
dschach committed Oct 19, 2023
1 parent 64cd1fe commit 6eb6e3c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions dist/apex.es.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},{
Expand All @@ -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:[/(?<!\.)/,t.either("label","description","callout","required","category","configurationEditor","iconName","SeeAllData"),/\s*/,/=/],
scope:{2:"meta keyword",4:"operator"}},m=[{begin:[t.concat("@",a),/\s*\(/],
beginScope:{1:"meta"},contains:[{match:[a,"="],scope:{1:"meta keyword",
Expand Down Expand Up @@ -96,7 +96,7 @@ keyword:["trigger|10","class","interface","abstract","break","cast","catch","con
built_in:["finish","start","execute","insert","update","upsert|8","delete","undelete","merge","convertLead|10",...n],
type:["anytype","blob|0","boolean|0","byte|0","currency|0","date|0","datetime|0","decimal|0","double|0","enum|0","float|0","integer|0","long|0","object","pagereference|10","selectoption|10","short|0","sobject|10","string|0","time|0","void|0","float|0"],
literal:c,classNameAliases:{soql:"subst"}},
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/^#/,/^import \.[a-zA-Z]+\./,/^import [\w]+/,/^import$/,/^include </,/^use\s+</,/\b(const|var)\s+\w+\s*=/,/\bstruct\b/,"System.log","console.log",/\bfor\s+\w+\s+IN\s+/,/\bif\s+\w+\s+IN\s+/,/\bend\s+if\b/,/\bend\s+select\b/,/\b(int|var)\s+\w+\s+=/,/\b(int[0-9]+|bool)\b/,/\b\$/,"::=",/\s#[a-zA-Z]/,/\s_[a-zA-Z]/,/\s\$[a-zA-Z]/,"#if","%if",/\bif(?!\s+\()/,"%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/^include\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,/\bend\n/,'"""',/\+\+\+/,/=>/],
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/^#/,/^import \.[a-zA-Z]+\./,/^import [\w]+/,/^import$/,/^include </,/^use\s+</,/\b(const|var)\s+\w+\s*=/,/\bstruct\b/,"System.log","console.log",/\bfor\s+\w+\s+IN\s+/,/\bif\s+\w+\s+IN\s+/,/\bend\s+if\b/,/\bend\s+select\b/,/\b(int|var)\s+\w+\s+=/,/\b(int[0-9]+|bool)\b/,/\b\$/,"::=",/\s#[a-zA-Z]/,/\s_[a-zA-Z]/,/\s\$[a-zA-Z]/,"#if","%if",/\bif(?!\s+\()/,"%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/^include\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,/\bend\n/,'"""',/\+\+\+/,/=>/,/<%/,"<%#","%%>","<%%"],
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,{
Expand Down
20 changes: 10 additions & 10 deletions dist/apex.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},{
Expand All @@ -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:[/(?<!\.)/,t.either("label","description","callout","required","category","configurationEditor","iconName","SeeAllData"),/\s*/,/=/],
scope:{2:"meta keyword",4:"operator"}},m=[{begin:[t.concat("@",a),/\s*\(/],
beginScope:{1:"meta"},contains:[{match:[a,"="],scope:{1:"meta keyword",
Expand Down Expand Up @@ -96,7 +96,7 @@ keyword:["trigger|10","class","interface","abstract","break","cast","catch","con
built_in:["finish","start","execute","insert","update","upsert|8","delete","undelete","merge","convertLead|10",...n],
type:["anytype","blob|0","boolean|0","byte|0","currency|0","date|0","datetime|0","decimal|0","double|0","enum|0","float|0","integer|0","long|0","object","pagereference|10","selectoption|10","short|0","sobject|10","string|0","time|0","void|0","float|0"],
literal:c,classNameAliases:{soql:"subst"}},
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/^#/,/^import \.[a-zA-Z]+\./,/^import [\w]+/,/^import$/,/^include </,/^use\s+</,/\b(const|var)\s+\w+\s*=/,/\bstruct\b/,"System.log","console.log",/\bfor\s+\w+\s+IN\s+/,/\bif\s+\w+\s+IN\s+/,/\bend\s+if\b/,/\bend\s+select\b/,/\b(int|var)\s+\w+\s+=/,/\b(int[0-9]+|bool)\b/,/\b\$/,"::=",/\s#[a-zA-Z]/,/\s_[a-zA-Z]/,/\s\$[a-zA-Z]/,"#if","%if",/\bif(?!\s+\()/,"%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/^include\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,/\bend\n/,'"""',/\+\+\+/,/=>/],
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/^#/,/^import \.[a-zA-Z]+\./,/^import [\w]+/,/^import$/,/^include </,/^use\s+</,/\b(const|var)\s+\w+\s*=/,/\bstruct\b/,"System.log","console.log",/\bfor\s+\w+\s+IN\s+/,/\bif\s+\w+\s+IN\s+/,/\bend\s+if\b/,/\bend\s+select\b/,/\b(int|var)\s+\w+\s+=/,/\b(int[0-9]+|bool)\b/,/\b\$/,"::=",/\s#[a-zA-Z]/,/\s_[a-zA-Z]/,/\s\$[a-zA-Z]/,"#if","%if",/\bif(?!\s+\()/,"%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/^include\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,/\bend\n/,'"""',/\+\+\+/,/=>/,/<%/,"<%#","%%>","<%%"],
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,{
Expand Down

0 comments on commit 6eb6e3c

Please sign in to comment.