Skip to content

Commit 06b9ea5

Browse files
committed
Release v1.1.0
Using GitHub Packages v1.1.0 Upgrade package.json to 1.1.0 Package name fix
1 parent 5cafe0c commit 06b9ea5

File tree

9 files changed

+68
-389
lines changed

9 files changed

+68
-389
lines changed

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@highlightjs:registry=https://npm.pkg.github.com

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ For more details see [Highlight.js main page](https://github.com/highlightjs/hig
5151
### Using directly from jsDelivr
5252

5353
```html
54-
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
54+
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
5555
<script
5656
type="text/javascript"
5757
src="https://cdn.jsdelivr.net/npm/highlightjs-apex/dist/apex.min.js"></script>

Diff for: demo/testcode.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
}
5454
for(Account a : [SELECT Id FROM Account WHERE Id = :a.Id ORDER BY CreatedDate ASC] ){}
5555
actionPlan = (ActionPlan__c) stdController.getRecord();
56-
truestory = ActionPlansUtilities.getCanDisplayReminder();
56+
truestory = req.setHeader('X-Password', '{!$Credential.Password}');
5757
}
5858

5959
/**
@@ -75,7 +75,7 @@
7575
delete actionPlan;
7676
} catch (DMLException e) {
7777
ApexPages.addMessages(e);
78-
return null;
78+
return i++;
7979
}
8080

8181
String retURL = '/' + ActionPlansUtilities.getObjectKeyPrefix(ActionPlansUtilities.namespacePrefix + 'ActionPlan__c') + '/o';

Diff for: dist/apex.es.min.js

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var hljsGrammar=(()=>{"use strict";return e=>{
33
const s=e.regex,t="[a-zA-Z][a-zA-Z_0-9]*",a={scope:"number",variants:[{
44
match:/\b[0-9]+(?:\.[0-9]+)?/},{match:/\s(?:[0-9,]+)?\.[0-9]+/}],relevance:0
55
},c={
6-
match:s.either(/-/,/~/,/\*/,/\*=/,/\/=/,/%/,/\.\.\./,/\.\./,/\+/,/<</,/>>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/\?:/,/=/,/=>/),
6+
match:s.either(/-/,/~/,/\*/,/\*=/,/\/=/,/%/,/\+/,/<</,/>>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./),
77
scope:"operator",relevance:0},n={
88
match:[/\b/,s.either("ApexPages|10","AppLauncher","Approval","Auth","Cache","Canvas","ChatterAnswers|10","CommercePayments|10","ConnectApi|10","Database","Datacloud|10","DataSource|10","Dom","EventBus|10","Flow","Functions","KbManagement|10","Label","LxScheduler|10","Messaging","Metadata","Pref_center|10","Process","QuickAction","Reports","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"),/(?=\.)/],
99
scope:{2:"built_in"},relevance:10
@@ -24,7 +24,7 @@ scope:{2:"title.function.invoke"}},{
2424
begin:[/\./,s.concat("(?:"+t+")"),/(?=\s*\([^\)])/],scope:{
2525
2:"title.function.invoke"}},{
2626
begin:[/(?<=\s)/,s.concat("(?:"+t+")"),/(?=\s*\()/],scope:{2:"title.function"}
27-
}],contains:[r,o,e.APOS_STRING_MODE],relevance:0},d={
27+
}],contains:[r,o,e.APOS_STRING_MODE],relevance:0},m={
2828
begin:/\[[\s\n]*(?=SELECT)/,end:/\]/,scope:"subst",relevance:10,contains:[{
2929
begin:s.concat(/\b/,s.either("ABOVE_OR_BELOW","ABOVE","ACTIVE","ADVANCED","ALL",/ALL\s+FIELDS/,"AND","ANY","ARRAY","AS","ASC","BY","CATEGORY","CONTAINS","COUNT","COUNT_DISTINCT","SUM","MAX","MIN","HOUR_IN_DAY","CONVERTCURRENCY","CUBE","DATA","DESC","DIVISION","END","EXCLUDES","FIELDS","FIND","FIRST","FOR","FROM",/GROUP\s+BY/,"HAVING","INCLUDES","LAST","LAST_90_DAYS","LAST_MONTH","LAST_N_DAYS","LAST_WEEK","LAST","LIKE","LIMIT","NETWORK","NEXT_90_DAYS","NEXT_MONTH","NEXT_N_DAYS","NEXT_WEEK","NULLS","OFFSET","ON","OR",/ORDER\s+BY/,"REFERENCE","RETURNING","ROLLUP","ROWS","SEARCH","SECURITY_ENFORCED","SELECT","SNIPPET","SORT","THIS_MONTH","THIS_WEEK","TODAY","TOLABEL","TOMORROW","TRACKING","TYPEOF","UPDATE",/USING\s+SCOPE/,"VIEW","VIEWSTAT","VIEWSTATE","WHERE","WITH","YESTERDAY","USER_MODE"),/\b/),
3030
scope:"keyword"},{match:/(\bIN\b|<|<=|>|>=|\bNOT\s+IN\b|=|!\s*=|:{1})/,
@@ -33,17 +33,17 @@ relevance:0},{match:/\b[a-zA-Z][a-zA-Z_0-9]*\b/,scope:"property"},a,A],
3333
illegal:"::"};return{name:"Apex",aliases:["apex","lightning"],
3434
case_insensitive:!0,disableAutodetect:!1,ignoreIllegals:!1,keywords:{
3535
$pattern:"[A-Za-z][0-9A-Za-z$_]*",
36-
keyword:["abstract","AccessLevel","USER_MODE","break","catch","continue","default","do","else","execute","exports","extends|6","finally","finish","for","get","put","set","global","if","implements","new","newMap|10","old|10","oldMap|10","override","private","protected","public","return","start","static","throws","throw","testmethod|10","try","virtual","webservice","when","while"],
36+
keyword:["trigger|10","class","interface","abstract","AccessLevel","USER_MODE","break","catch","continue","default","do","else","execute","exports","extends|6","finally","finish","for","get","put","set","global","if","implements","new","newMap|10","old|10","oldMap|10","override","private","protected","public","return","start","static","throws","throw","testmethod|10","try","virtual","webservice","when","while"],
3737
"variable.language":["final","instanceof","super","this","transient"],
38-
built_in:["trigger|10","class","interface","insert","update","upsert|8","delete","undelete","merge","schedulable|10","batchable|10","queueable|10","comparable|10","callable|10"],
38+
built_in:["insert","update","upsert|8","delete","undelete","merge","schedulable|10","batchable|10","queueable|10","comparable|10","callable|10"],
3939
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"],
4040
literal:["false","true","null"]},
41-
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/\n#/,/\nimport \.[a-zA-Z]+\./,/\nimport [\w]+/,/\ninclude </,/\nuse\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","%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/\binclude\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,'"""'],
41+
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/,'"""',/@\w+\[\w+\]/],
4242
contains:[i,[{match:[/\b(?<=enum|\bnew)/,/\s+/,t,/\s*(?=[{()])/],scope:{3:"type"
43-
},contains:[r,o,E]},{match:[/\bclass/,/\s+/,t],scope:{1:"keyword",
44-
3:"title.class"}},{match:[/(?<=public)/,/\s+/,t,/(?=\s*\()/],scope:{
45-
3:"constructor"}},{begin:[/\btrigger/,/\s+/,t,/\s+/,"on",/\s+/,t],end:"{",
46-
scope:{1:"keyword",3:"title.class",7:"type"},contains:[r,o,{
43+
},contains:[r,o,E]},{match:[/(?<=\bclass\b)/,/\s+/,t],scope:{3:"title.class"}},{
44+
match:[/(?<=public)/,/\s+/,t,/(?=\s*\()/],scope:{3:"constructor"}},{
45+
begin:[/(?<=\btrigger\b)/,/\s+/,t,/\s+/,"on",/\s+/,t],end:"{",scope:{
46+
3:"title.class",7:"type"},contains:[r,o,{
4747
match:/(?:before|after)\s+(?:insert|update|delete|undelete)/,scope:"built_in",
4848
relevance:10}],relevance:10},{match:[/\bextends/,/\s+/,t],scope:{
4949
3:"title.class.inherited"},contains:[r,o,n],illegal:[/\b_/,/_\b/]}],[{
@@ -57,6 +57,7 @@ relevance:8,scope:"keyword"},E,l,{variants:[{
5757
match:[/\bfor\b/,/\s*\(/,/\w+/,/\s+/,/\w+/,/\s+:/,/(?=\s*\[)/],scope:{
5858
1:"keyword",3:"type"}},{
5959
match:[/\bfor\b/,/\s*\(/,/\w+/,/\s+/,/\w+/,/\s+:/,/\s*/,/\w+/],scope:{
60-
1:"keyword",3:"type"}}],contains:[r,o,d]},e.APOS_STRING_MODE,A,n,a,c,{
61-
match:/(?<!\.)\bId\b/,scope:"type",relevance:8},d]}}})()
60+
1:"keyword",3:"type"}}],contains:[r,o,m]},e.APOS_STRING_MODE,A,{
61+
begin:["{",/\$[a-zA-Z]+]/,".",/\w+/],end:"}",scope:{2:"built_in",4:"property"}
62+
},n,a,c,{match:/(?<!\.)\bId\b/,scope:"type",relevance:8},m]}}})()
6263
;export default hljsGrammar;

Diff for: dist/apex.min.js

+12-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const s=e.regex,t="[a-zA-Z][a-zA-Z_0-9]*",a={scope:"number",variants:[{
44
match:/\b[0-9]+(?:\.[0-9]+)?/},{match:/\s(?:[0-9,]+)?\.[0-9]+/}],relevance:0
55
},c={
6-
match:s.either(/-/,/~/,/\*/,/\*=/,/\/=/,/%/,/\.\.\./,/\.\./,/\+/,/<</,/>>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/\?:/,/=/,/=>/),
6+
match:s.either(/-/,/~/,/\*/,/\*=/,/\/=/,/%/,/\+/,/<</,/>>/,/>=/,/<=/,/\s<\s/,/\s>\s/,/\^/,/\^=/,/!=/,/!/,/==/,/&&/,/&/,/\|\|/,/\|/,/(?<=\s)\?|:(?=\s)/,/=/,/=>/,/\?\./),
77
scope:"operator",relevance:0},n={
88
match:[/\b/,s.either("ApexPages|10","AppLauncher","Approval","Auth","Cache","Canvas","ChatterAnswers|10","CommercePayments|10","ConnectApi|10","Database","Datacloud|10","DataSource|10","Dom","EventBus|10","Flow","Functions","KbManagement|10","Label","LxScheduler|10","Messaging","Metadata","Pref_center|10","Process","QuickAction","Reports","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"),/(?=\.)/],
99
scope:{2:"built_in"},relevance:10
@@ -24,7 +24,7 @@ scope:{2:"title.function.invoke"}},{
2424
begin:[/\./,s.concat("(?:"+t+")"),/(?=\s*\([^\)])/],scope:{
2525
2:"title.function.invoke"}},{
2626
begin:[/(?<=\s)/,s.concat("(?:"+t+")"),/(?=\s*\()/],scope:{2:"title.function"}
27-
}],contains:[r,o,e.APOS_STRING_MODE],relevance:0},d={
27+
}],contains:[r,o,e.APOS_STRING_MODE],relevance:0},u={
2828
begin:/\[[\s\n]*(?=SELECT)/,end:/\]/,scope:"subst",relevance:10,contains:[{
2929
begin:s.concat(/\b/,s.either("ABOVE_OR_BELOW","ABOVE","ACTIVE","ADVANCED","ALL",/ALL\s+FIELDS/,"AND","ANY","ARRAY","AS","ASC","BY","CATEGORY","CONTAINS","COUNT","COUNT_DISTINCT","SUM","MAX","MIN","HOUR_IN_DAY","CONVERTCURRENCY","CUBE","DATA","DESC","DIVISION","END","EXCLUDES","FIELDS","FIND","FIRST","FOR","FROM",/GROUP\s+BY/,"HAVING","INCLUDES","LAST","LAST_90_DAYS","LAST_MONTH","LAST_N_DAYS","LAST_WEEK","LAST","LIKE","LIMIT","NETWORK","NEXT_90_DAYS","NEXT_MONTH","NEXT_N_DAYS","NEXT_WEEK","NULLS","OFFSET","ON","OR",/ORDER\s+BY/,"REFERENCE","RETURNING","ROLLUP","ROWS","SEARCH","SECURITY_ENFORCED","SELECT","SNIPPET","SORT","THIS_MONTH","THIS_WEEK","TODAY","TOLABEL","TOMORROW","TRACKING","TYPEOF","UPDATE",/USING\s+SCOPE/,"VIEW","VIEWSTAT","VIEWSTATE","WHERE","WITH","YESTERDAY","USER_MODE"),/\b/),
3030
scope:"keyword"},{match:/(\bIN\b|<|<=|>|>=|\bNOT\s+IN\b|=|!\s*=|:{1})/,
@@ -33,17 +33,17 @@ relevance:0},{match:/\b[a-zA-Z][a-zA-Z_0-9]*\b/,scope:"property"},a,A],
3333
illegal:"::"};return{name:"Apex",aliases:["apex","lightning"],
3434
case_insensitive:!0,disableAutodetect:!1,ignoreIllegals:!1,keywords:{
3535
$pattern:"[A-Za-z][0-9A-Za-z$_]*",
36-
keyword:["abstract","AccessLevel","USER_MODE","break","catch","continue","default","do","else","execute","exports","extends|6","finally","finish","for","get","put","set","global","if","implements","new","newMap|10","old|10","oldMap|10","override","private","protected","public","return","start","static","throws","throw","testmethod|10","try","virtual","webservice","when","while"],
36+
keyword:["trigger|10","class","interface","abstract","AccessLevel","USER_MODE","break","catch","continue","default","do","else","execute","exports","extends|6","finally","finish","for","get","put","set","global","if","implements","new","newMap|10","old|10","oldMap|10","override","private","protected","public","return","start","static","throws","throw","testmethod|10","try","virtual","webservice","when","while"],
3737
"variable.language":["final","instanceof","super","this","transient"],
38-
built_in:["trigger|10","class","interface","insert","update","upsert|8","delete","undelete","merge","schedulable|10","batchable|10","queueable|10","comparable|10","callable|10"],
38+
built_in:["insert","update","upsert|8","delete","undelete","merge","schedulable|10","batchable|10","queueable|10","comparable|10","callable|10"],
3939
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"],
4040
literal:["false","true","null"]},
41-
illegal:["</","<#","<]","<div>","\x3c!--","!DOCTYPE",/<iframe\b/,/\n#/,/\nimport \.[a-zA-Z]+\./,/\nimport [\w]+/,/\ninclude </,/\nuse\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","%endif","#endif",/\w::\w/,/RETURNING\s+\*/,/\bint\b/,/import\s+\w+\s+=\s+require\("\w+"\)/,"/\binclude\b/",/\buse\s+strict\b/,/\w+\s+=\s+"\S*";/,/\/include\//,/\Anamespace\b/,/\bend\.\n/,'"""'],
41+
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/,'"""',/@\w+\[\w+\]/],
4242
contains:[i,[{match:[/\b(?<=enum|\bnew)/,/\s+/,t,/\s*(?=[{()])/],scope:{3:"type"
43-
},contains:[r,o,E]},{match:[/\bclass/,/\s+/,t],scope:{1:"keyword",
44-
3:"title.class"}},{match:[/(?<=public)/,/\s+/,t,/(?=\s*\()/],scope:{
45-
3:"constructor"}},{begin:[/\btrigger/,/\s+/,t,/\s+/,"on",/\s+/,t],end:"{",
46-
scope:{1:"keyword",3:"title.class",7:"type"},contains:[r,o,{
43+
},contains:[r,o,E]},{match:[/(?<=\bclass\b)/,/\s+/,t],scope:{3:"title.class"}},{
44+
match:[/(?<=public)/,/\s+/,t,/(?=\s*\()/],scope:{3:"constructor"}},{
45+
begin:[/(?<=\btrigger\b)/,/\s+/,t,/\s+/,"on",/\s+/,t],end:"{",scope:{
46+
3:"title.class",7:"type"},contains:[r,o,{
4747
match:/(?:before|after)\s+(?:insert|update|delete|undelete)/,scope:"built_in",
4848
relevance:10}],relevance:10},{match:[/\bextends/,/\s+/,t],scope:{
4949
3:"title.class.inherited"},contains:[r,o,n],illegal:[/\b_/,/_\b/]}],[{
@@ -57,6 +57,7 @@ relevance:8,scope:"keyword"},E,l,{variants:[{
5757
match:[/\bfor\b/,/\s*\(/,/\w+/,/\s+/,/\w+/,/\s+:/,/(?=\s*\[)/],scope:{
5858
1:"keyword",3:"type"}},{
5959
match:[/\bfor\b/,/\s*\(/,/\w+/,/\s+/,/\w+/,/\s+:/,/\s*/,/\w+/],scope:{
60-
1:"keyword",3:"type"}}],contains:[r,o,d]},e.APOS_STRING_MODE,A,n,a,c,{
61-
match:/(?<!\.)\bId\b/,scope:"type",relevance:8},d]}}})()
60+
1:"keyword",3:"type"}}],contains:[r,o,u]},e.APOS_STRING_MODE,A,{
61+
begin:["{",/\$[a-zA-Z]+]/,".",/\w+/],end:"}",scope:{2:"built_in",4:"property"}
62+
},n,a,c,{match:/(?<!\.)\bId\b/,scope:"type",relevance:8},u]}}})()
6263
;hljs.registerLanguage("apex",e)})();

0 commit comments

Comments
 (0)