@@ -3,7 +3,7 @@ var hljsGrammar=(()=>{"use strict";return e=>{
3
3
const s = e . regex , t = "[a-zA-Z][a-zA-Z_0-9]*" , a = { scope :"number" , variants :[ {
4
4
match :/ \b [ 0 - 9 ] + (?: \. [ 0 - 9 ] + ) ? / } , { match :/ \s (?: [ 0 - 9 , ] + ) ? \. [ 0 - 9 ] + / } ] , relevance :0
5
5
} , c = {
6
- match :s . either ( / - / , / ~ / , / \* / , / \* = / , / \/ = / , / % / , / \. \. \. / , / \. \. / , / \ +/ , / < < / , / > > / , / > = / , / < = / , / \s < \s / , / \s > \s / , / \^ / , / \^ = / , / ! = / , / ! / , / = = / , / & & / , / & / , / \| \| / , / \| / , / \? : / , / = / , / = > / ) ,
6
+ match :s . either ( / - / , / ~ / , / \* / , / \* = / , / \/ = / , / % / , / \+ / , / < < / , / > > / , / > = / , / < = / , / \s < \s / , / \s > \s / , / \^ / , / \^ = / , / ! = / , / ! / , / = = / , / & & / , / & / , / \| \| / , / \| / , / (?< = \s ) \? | : (? = \s ) / , / = / , / = > / , / \? \. / ) ,
7
7
scope :"operator" , relevance :0 } , n = {
8
8
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" ) , / (? = \. ) / ] ,
9
9
scope :{ 2 :"built_in" } , relevance :10
@@ -24,7 +24,7 @@ scope:{2:"title.function.invoke"}},{
24
24
begin :[ / \. / , s . concat ( "(?:" + t + ")" ) , / (? = \s * \( [ ^ \) ] ) / ] , scope :{
25
25
2 :"title.function.invoke" } } , {
26
26
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 = {
28
28
begin :/ \[ [ \s \n ] * (? = S E L E C T ) / , end :/ \] / , scope :"subst" , relevance :10 , contains :[ {
29
29
begin :s . concat ( / \b / , s . either ( "ABOVE_OR_BELOW" , "ABOVE" , "ACTIVE" , "ADVANCED" , "ALL" , / A L L \s + F I E L D S / , "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" , / G R O U P \s + B Y / , "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" , / O R D E R \s + B Y / , "REFERENCE" , "RETURNING" , "ROLLUP" , "ROWS" , "SEARCH" , "SECURITY_ENFORCED" , "SELECT" , "SNIPPET" , "SORT" , "THIS_MONTH" , "THIS_WEEK" , "TODAY" , "TOLABEL" , "TOMORROW" , "TRACKING" , "TYPEOF" , "UPDATE" , / U S I N G \s + S C O P E / , "VIEW" , "VIEWSTAT" , "VIEWSTATE" , "WHERE" , "WITH" , "YESTERDAY" , "USER_MODE" ) , / \b / ) ,
30
30
scope :"keyword" } , { match :/ ( \b I N \b | < | < = | > | > = | \b N O T \s + I N \b | = | ! \s * = | : { 1 } ) / ,
@@ -33,17 +33,17 @@ relevance:0},{match:/\b[a-zA-Z][a-zA-Z_0-9]*\b/,scope:"property"},a,A],
33
33
illegal :"::" } ; return { name :"Apex" , aliases :[ "apex" , "lightning" ] ,
34
34
case_insensitive :! 0 , disableAutodetect :! 1 , ignoreIllegals :! 1 , keywords :{
35
35
$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" ] ,
37
37
"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" ] ,
39
39
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" ] ,
40
40
literal :[ "false" , "true" , "null" ] } ,
41
- illegal :[ "</" , "<#" , "<]" , "<div>" , "\x3c!--" , "!DOCTYPE" , / < i f r a m e \b / , / \n # / , / \n i m p o r t \. [ a - z A - Z ] + \. / , / \n i m p o r t [ \w ] + / , / \n i n c l u d e < / , / \n u s e \ s+ < / , / \b ( c o n s t | v a r ) \s + \w + \s * = / , / \b s t r u c t \b / , "System.log" , "console.log" , / \b f o r \s + \w + \s + I N \s + / , / \b i f \s + \w + \s + I N \s + / , / \b e n d \s + i f \b / , / \b e n d \s + s e l e c t \b / , / \b ( i n t | v a r ) \s + \w + \s + = / , / \b ( i n t [ 0 - 9 ] + | b o o l ) \b / , / \b \$ / , "::=" , / \s # [ a - z A - Z ] / , / \s _ [ a - z A - Z ] / , / \s \$ [ a - z A - Z ] / , "#if" , "%if" , "%endif" , "#endif" , / \w : : \w / , / R E T U R N I N G \s + \* / , / \b i n t \b / , / i m p o r t \s + \w + \s + = \s + r e q u i r e \( " \w + " \) / , "/\binclude\ b/" , / \b u s e \s + s t r i c t \b / , / \w + \s + = \s + " \S * " ; / , / \/ i n c l u d e \/ / , / \A n a m e s p a c e \b / , / \b e n d \. \n / , '"""' ] ,
41
+ illegal :[ "</" , "<#" , "<]" , "<div>" , "\x3c!--" , "!DOCTYPE" , / < i f r a m e \b / , / ^ # / , / ^ i m p o r t \. [ a - z A - Z ] + \. / , / ^ i m p o r t [ \w ] + / , / ^ i m p o r t $ / , / ^ i n c l u d e < / , / ^ u s e \ s+ < / , / \b ( c o n s t | v a r ) \s + \w + \s * = / , / \b s t r u c t \b / , "System.log" , "console.log" , / \b f o r \s + \w + \s + I N \s + / , / \b i f \s + \w + \s + I N \s + / , / \b e n d \s + i f \b / , / \b e n d \s + s e l e c t \b / , / \b ( i n t | v a r ) \s + \w + \s + = / , / \b ( i n t [ 0 - 9 ] + | b o o l ) \b / , / \b \$ / , "::=" , / \s # [ a - z A - Z ] / , / \s _ [ a - z A - Z ] / , / \s \$ [ a - z A - Z ] / , "#if" , "%if" , / \b i f (? ! \s + \( ) / , "%endif" , "#endif" , / \w : : \w / , / R E T U R N I N G \s + \* / , / \b i n t \b / , / i m p o r t \s + \w + \s + = \s + r e q u i r e \( " \w + " \) / , "/^include\ b/" , / \b u s e \s + s t r i c t \b / , / \w + \s + = \s + " \S * " ; / , / \/ i n c l u d e \/ / , / \A n a m e s p a c e \b / , / \b e n d \. \n / , / \b e n d \n / , '"""' , / @ \w + \[ \w + \] / ] ,
42
42
contains :[ i , [ { match :[ / \b (?< = e n u m | \b n e w ) / , / \s + / , t , / \s * (? = [ { ( ) ] ) / ] , scope :{ 3 :"type"
43
- } , contains :[ r , o , E ] } , { match :[ / \b c l a s s / , / \s + / , t ] , scope :{ 1 : "keyword" ,
44
- 3 : "title.class" } } , { match :[ / (?< = p u b l i c ) / , / \s + / , t , / (? = \s * \( ) / ] , scope :{
45
- 3 : "constructor" } } , { begin :[ / \b t r i g g e r / , / \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 :[ / (?< = \b c l a s s \b ) / , / \s + / , t ] , scope :{ 3 : "title.class" } } , {
44
+ match :[ / (?< = p u b l i c ) / , / \s + / , t , / (? = \s * \( ) / ] , scope :{ 3 : "constructor" } } , {
45
+ begin :[ / (?< = \b t r i g g e r \b ) / , / \s + / , t , / \s + / , "on" , / \s + / , t ] , end :"{" , scope : {
46
+ 3 :"title.class" , 7 :"type" } , contains :[ r , o , {
47
47
match :/ (?: b e f o r e | a f t e r ) \s + (?: i n s e r t | u p d a t e | d e l e t e | u n d e l e t e ) / , scope :"built_in" ,
48
48
relevance :10 } ] , relevance :10 } , { match :[ / \b e x t e n d s / , / \s + / , t ] , scope :{
49
49
3 :"title.class.inherited" } , contains :[ r , o , n ] , illegal :[ / \b _ / , / _ \b / ] } ] , [ {
@@ -57,6 +57,7 @@ relevance:8,scope:"keyword"},E,l,{variants:[{
57
57
match :[ / \b f o r \b / , / \s * \( / , / \w + / , / \s + / , / \w + / , / \s + : / , / (? = \s * \[ ) / ] , scope :{
58
58
1 :"keyword" , 3 :"type" } } , {
59
59
match :[ / \b f o r \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 :/ (?< ! \. ) \b I d \b / , scope :"type" , relevance :8 } , d ] } } } ) ( )
60
+ 1 :"keyword" , 3 :"type" } } ] , contains :[ r , o , m ] } , e . APOS_STRING_MODE , A , {
61
+ begin :[ "{" , / \$ [ a - z A - Z ] + ] / , "." , / \w + / ] , end :"}" , scope :{ 2 :"built_in" , 4 :"property" }
62
+ } , n , a , c , { match :/ (?< ! \. ) \b I d \b / , scope :"type" , relevance :8 } , m ] } } } ) ( )
62
63
; export default hljsGrammar ;
0 commit comments