1
1
/*! `apex` grammar compiled for Highlight.js 11.9.0 */
2
2
var hljsGrammar = ( ( ) => { "use strict" ; return e => {
3
- const t = e . regex , a = "[a-zA-Z][a-zA-Z_0-9]*" , n = "\\b" + a + "\\b" , c = "@" + a , o = / (? = \s * \( ) / , s = / \s + / , r = / \? \. \b / , i = [ {
3
+ const t = e . regex , a = "[a-zA-Z][a-zA-Z_0-9]*" , c = "\\b" + a + "\\b" , n = "@" + a , s = / (? = \s * \( ) / , o = / \s + / , r = / \? \. / , i = [ {
4
4
match :/ (?< ! \? ) \. / , scope :"punctuation" , relevance :0 } , { match :r , scope :"operator" ,
5
5
relevance :0 } ] ; function l ( ...e ) { return t . concat ( "(?!" , e . join ( "|" ) , ")" ) } const p = {
6
6
scope :"number" ,
7
7
match :t . either ( / \b ( \d { 4 } \- \d { 2 } \- \d { 2 } T \d { 2 } \: \d { 2 } \: \d { 2 } ( \. \d { 1 , 3 } ) ? ( \- | \+ ) \d { 2 } \: \d { 2 } ) \b / , / \b ( \d { 4 } \- \d { 2 } \- \d { 2 } T \d { 2 } \: \d { 2 } \: \d { 2 } ( \. \d { 1 , 3 } ) ? ( Z ) ? ) \b / , / \b ( \d { 4 } \- \d { 2 } \- \d { 2 } ) \b / , / \b 0 ( x | X ) [ 0 - 9 a - f A - F _ ] + ( U | u | L | l | U L | U l | u L | u l | L U | L u | l U | l u ) ? \b / , / \b 0 ( b | B ) [ 0 1 _ ] + ( U | u | L | l | U L | U l | u L | u l | L U | L u | l U | l u ) ? \b / , / \b ( [ 0 - 9 ] + ) ? \. [ 0 - 9 ] + ( ( e | E ) [ 0 - 9 ] + ) ? ( F | f | D | d | M | m ) ? \b / , / ( - ? ) \b [ 0 - 9 ] + ( e | E ) [ 0 - 9 ] + ( F | f | D | d | M | m ) ? \b / , / ( - ? ) \b [ 0 - 9 ] + ( F | f | D | d | M | m ) \b / , / ( - ? ) \b [ 0 - 9 ] + ( U | u | L | l | U L | U l | u L | u l | L U | L u | l U | l u ) ? \b / , / ( - ? ) ( \b 0 [ 0 - 9 ] + | ( \b \d + ( \. \d * ) ? | \. \d + ) ( [ e E ] [ - + ] ? \d + ) ? ) / ) ,
8
8
relevance :0
9
- } , b = [ "try" , "catch" , "finally" , "get" , "set" , "put" , "if" , "for" , "else" , "do" , "while" , "continue" , "break" , "implements" , "extends" , "return" , "throw" , "when" , "new" ] , u = [ "instanceof" , "super" , "this" ] , d = [ "anytype|0" , "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|0" , "pagereference|8" , "selectoption|8" , "short|0" , "sobject|10" , "string|0" , "time|0" , "void|0" , "float|0" ] , m = [ "AppLauncher" , "Approval" , "Auth" , "Cache" , "Canvas" , "ChatterAnswers" , "CommercePayments" , "ConnectApi" , "Database" , "Datacloud" , "Dataweave" , "DataSource" , "Dom" , "EventBus" , "ExternalService" , "Flow" , "Functions" , "Invocable" , "KbManagement" , "LxScheduler" , "Messaging" , "Metadata" , "Pref_center" , "Process" , "QuickAction" , "Reports" , "RichMessageing" , "Schema" , "Search" , "Sfc" , "Sfdc_Checkout" , "sfdc_surveys" , "Site" , "Support" , "System" , "TerritoryMgmt" , "TxnSecurity" , "UserProvisioning" , "VisualEditor" , "Wave" ] , E = [ "false" , "true" , "null" ] , A = {
9
+ } , b = [ "try" , "catch" , "finally" , "get" , "set" , "put" , "if" , "for" , "else" , "do" , "while" , "continue" , "break" , "implements" , "extends" , "return" , "throw" , "when" , "new" ] , u = [ "instanceof" , "super" , "this" ] , d = [ "abstract" , "final" , "global" , "interface" , "override" , "private" , "protected" , "public" , "static" , "testMethod" , "transient" , "virtual" , "webservice" ] , m = [ "anytype|0" , "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|0" , "pagereference|8" , "selectoption|8" , "short|0" , "sobject|10" , "string|0" , "time|0" , "void|0" , "float|0" ] , E = [ "insert" , "update" , "upsert" , "delete" , "undelete" , "merge" , "convertLead" ] , A = [ "AppLauncher" , "Approval" , "Auth" , "Cache" , "Canvas" , "ChatterAnswers" , "CommercePayments" , "ConnectApi" , "Database" , "Datacloud" , "Dataweave" , "DataSource" , "Dom" , "EventBus" , "ExternalService" , "Flow" , "Functions" , "Invocable" , "KbManagement" , "LxScheduler" , "Messaging" , "Metadata" , "Pref_center" , "Process" , "QuickAction" , "Reports" , "RichMessageing" , "Schema" , "Search" , "Sfc" , "Sfdc_Checkout" , "sfdc_surveys" , "Site" , "Support" , "System" , "TerritoryMgmt" , "TxnSecurity" , "UserProvisioning" , "VisualEditor" , "Wave" ] , h = [ "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" , "Search" , "Security" , "SelectOption" , "Site" , "SObject" , "SObjectAccessDecision" , "StaticResourceCalloutMock" , "Test" , "TimeZone" , "Type" , "URL" , "UserInfo" , "UserManagement" , "Version" , "WebServiceCallout" , "XmlStreamReader" , "XmlStreamWriter" ] , v = [ "AccessType" , "AccessLevel" , "DomainType" , "JSONToken" , "LoggingLevel" , "Quiddity" , "TriggerOperation" , "operationType" ] , S = [ "false" , "true" , "null" ] , T = {
10
10
match :/ , / , scope :"punctuation" , relevance :0
11
- } , h = [ / - - / , / \+ \+ / , / \& \& | \| \| / , / \* \= | \/ \= | \% \= | \+ \= | - \= / , / \& \= | \^ \= | < < \= | > > \= | > > > \= | \| \= / , / \& | ~ | \^ | \| / , / < < | > > / , / < \= | > \= | \s ( < | > ) \s / , / \= \= | ! \= / , / \= > / , / ! (? = \w ) / , / (?< = \s ) ( \? | : ) (? = \s ) / , r , / (?< ! \? ) \? (? ! \? | \. | \[ ) / , / % [ ^ % ] | \* [ ^ \/ ] | \/ [ ^ \/ \* ] | (?< ! \- ) \- (? ! \- ) | (?< ! \+ ) \+ (? ! \+ ) / , / (?< ! \= | ! ) \= (? ! \= | > ) / ] , S = m . concat ( "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" , "Search" , "Security" , "SelectOption" , "Site" , "SObject" , "SObjectAccessDecision" , "StaticResourceCalloutMock" , "Test" , "TimeZone" , "Type" , "URL" , "UserInfo" , "UserManagement" , "Version" , "WebServiceCallout" , "XmlStreamReader" , "XmlStreamWriter" ) , v = {
12
- $pattern :t . concat ( / (?< ! \. ) \b / , a , / \b / ) ,
13
- keyword : [ ... b , "abstract" , "final" , "global" , "interface" , "override" , "private" , "protected" , "public" , "static" , "testMethod" , "transient" , "virtual" , "webservice" , "insert" , "update" , "upsert" , "delete" , "undelete" , "merge" , "convertLead" ] ,
14
- "variable.language" : u , built_in : S , type : d , literal : E } , T = {
11
+ } , R = [ / - - / , / \+ \+ / , / \& \& | \| \| / , / \* \= | \/ \= | \% \= | \+ \= | - \= / , / \& \= | \^ \= | < < \= | > > \= | > > > \= | \| \= / , / \& | ~ | \^ | \| / , / < < | > > / , / < \= | > \= | \s ( < | > ) \s / , / \= \= | ! \= / , / \= > / , / ! (? = \w ) / , / (?< = \s ) ( \? | : ) (? = \s ) / , r , / (?< ! \? ) \? (? ! \? | \. | \[ ) / , / % [ ^ % ] | \* [ ^ \/ ] | \/ [ ^ \/ \* ] | (?< ! \- ) \- (? ! \- ) | (?< ! \+ ) \+ (? ! \+ ) / , / (?< ! \= | ! ) \= (? ! \= | > ) / ] , g = A . concat ( ...h ) , y = {
12
+ $pattern :t . concat ( / (?< ! \. ) \b / , a , / (? ! \s * \( ) / ) , keyword : [ ... b , ... d , ... E ] ,
13
+ "variable.language" : u , type : m , literal : S
14
+ } , O = [ ... S , ... b , ... d , ... A , ... h , ... v , ... u , ... E ] , L = {
15
15
match :t . concat ( / \b / , t . either ( ...u ) , / \b / ) , scope :"variable.language" , relevance :0
16
- } , R = [ { match :[ / \b / , t . either ( ...m ) , / \. / , a , / (? = \. ) / ] , scope :{ 2 :"built_in" , 4 :"type" }
17
- } , { match :[ / \b / , t . either ( ...m ) , / \. / , a , / \b (? ! \. | \( ) / ] , scope :{ 2 :"built_in" ,
18
- 3 :"punctuation" , 4 :"keyword" } } , { match :[ / \b / , t . either ( ...m ) , / \. / , a , o ] , scope :{
19
- 2 :"built_in" , 3 :"punctuation" , 4 :"keyword" } } , {
20
- match :[ t . concat ( / \b / , t . either ( "AccessType" , "AccessLevel" , "DomainType" , "JSONToken" , "LoggingLevel" , "Quiddity" , "TriggerOperation" , "operationType" ) ) , / \? ? \. / , a , / \s * (? ! [ \. \( ] ) / ] ,
21
- scope :{ 1 :"built_in" , 2 :"punctuation" , 3 :"variable" } , relevance :0 } , {
16
+ } , N = [ { match :[ t . concat ( / \b / , t . either ( ...v ) ) , / \. / , a , / \b \s * (? ! [ \. \( ] ) / ] , scope :{
17
+ 1 :"built_in" , 2 :"punctuation" , 3 :"variable" } , relevance :0 } , {
18
+ match :[ t . concat ( / \b / , t . either ( ...h ) ) , / \. / , a , / \b \s * (? ! [ \. \( ] ) / ] , scope :{
19
+ 1 :"built_in" , 2 :"punctuation" , 3 :"type" } , relevance :0 } , {
20
+ match :[ t . concat ( / \b / , t . either ( ...A ) ) , / \. / , t . concat ( c , / \b (? = \. ) / ) ] , scope :{
21
+ 1 :"built_in" , 2 :"punctuation" , 3 :"type" } } , {
22
+ match :[ t . concat ( / \b / , t . either ( ...A , ...h ) ) , / \. / , c , / \b (? ! \. ) / ] , scope :{
23
+ 1 :"built_in" , 2 :"punctuation" , 3 :"keyword" } } , {
22
24
match :[ / \b T r i g g e r \b / , / \. / , / ( i s E x e c u t i n g | i s I n s e r t | i s U p d a t e | i s D e l e t e | i s B e f o r e | i s A f t e r | i s U n d e l e t e | n e w | n e w M a p | o l d | o l d M a p | s i z e | o p e r a t i o n T y p e ) \b (? ! \. ) / ] ,
23
25
scope :{ 1 :"built_in" , 2 :"punctuation" , 3 :"type" } , relevance :10 } , {
24
- match :[ / \b t r i g g e r \b / , / \. / , "operationtype" , / \. / , t . concat ( n , / \b / ) ] , scope :{
26
+ match :[ / \b t r i g g e r \b / , / \. / , "operationtype" , / \. / , t . concat ( c , / \b / ) ] , scope :{
25
27
1 :"built_in" , 2 :"punctuation" , 3 :"keyword" , 4 :"punctuation" , 5 :"variable.constant" } ,
26
- relevance :10 } ] , g = [ {
28
+ relevance :10 } ] , C = [ {
27
29
match :t . either ( "," , / ; / , / (?< = \w ) \> / , / \< (? = \w ) / , / \{ | \} / , / \( | \) / , / \{ | \} / ) ,
28
- scope :"punctuation" , relevance :0 } , A ] , y = e . inherit ( e . APOS_STRING_MODE , {
30
+ scope :"punctuation" , relevance :0 } , T ] , D = e . inherit ( e . APOS_STRING_MODE , {
29
31
scope :"string" , relevance :0 , contains :[ { match :/ \\ ' / , scope :"literal" , relevance :0 } ]
30
- } ) , O = e . COMMENT ( "//" , / [ $ \n ] / , { relevance :0 } ) , L = [ e . COMMENT ( "/\\*" , "\\*/" , {
32
+ } ) , w = e . COMMENT ( "//" , / [ $ \n ] / , { relevance :0 } ) , I = [ e . COMMENT ( "/\\*" , "\\*/" , {
31
33
relevance :0 , contains :[ { begin :/ \w + @ / , relevance :0 } , {
32
- match :[ / @ (?: e x c e p t i o n | t h r o w s ) / , s , a ] , scope :{ 1 :"doctag" , 3 :"title.class" } ,
34
+ match :[ / @ (?: e x c e p t i o n | t h r o w s ) / , o , a ] , scope :{ 1 :"doctag" , 3 :"title.class" } ,
33
35
relevance :0 } , { begin :"@[A-Za-z_-]+" , scope :"doctag" , relevance :0 } , {
34
36
match :[ / (?< = @ p a r a m ) \s + / , a ] , scope :{ 2 :"variable" } , relevance :0 } , { begin :"`" , end :"`" ,
35
- scope :"string" , contains :[ e . BACKSLASH_ESCAPE ] , relevance :0 } ] } ) , O ] , N = {
36
- match :t . either ( ...h ) , scope :"operator" , relevance :0 } , w = { match :/ (?< ! \. ) \b I d \b / ,
37
- scope :"type" , relevance :8 } , C = [ { begin :/ \b ( l i s t | s e t | m a p ) (? = \s * < ) / ,
37
+ scope :"string" , contains :[ e . BACKSLASH_ESCAPE ] , relevance :0 } ] } ) , w ] , _ = {
38
+ match :t . either ( ...R ) , scope :"operator" , relevance :0 } , U = { match :/ (?< ! \. ) \b I d \b / ,
39
+ scope :"type" , relevance :8 } , M = [ { begin :/ \b ( l i s t | s e t | m a p ) (? = \s * < ) / ,
38
40
beginScope :"type" , end :/ \> + / , endScope :"punctuation" , contains :[ { match :/ \< | \, / ,
39
- scope :"punctuation" } , { match :n , scope :"type" } ] , relevance :8 } , {
40
- match :[ t . optional ( n ) , / \[ / , t . optional ( / \d + / ) , / \] / ] , scope :{ 1 :"variable" ,
41
+ scope :"punctuation" } , { match :c , scope :"type" } ] , relevance :8 } , {
42
+ match :[ t . optional ( c ) , / \[ / , t . optional ( / \d + / ) , / \] / ] , scope :{ 1 :"variable" ,
41
43
2 :"punctuation" , 3 :"number" , 4 :"punctuation" } } , { match :[ a , / \[ \] / ] , scope :{ 1 :"type" ,
42
- 2 :"punctuation" } , relevance :0 } ] , D = [ { match :t . concat ( c , / \b (? ! \s * \( ) / ) , scope :"meta"
43
- } , { scope :"meta" , begin :[ t . concat ( c , / \b / ) , / \s * / , / \( / ] , beginScope :{ 3 :"punctuation"
44
- } , end :/ \) / , endScope :"punctuation" , contains :[ { match :[ n , / \s * = / ] , scope :{
45
- 1 :"keyword" , 2 :"operator" } , contains :[ N ] } , y , p ] , keywords :{ literal :E } } ] , I = {
46
- match :[ / \b [ a - z A - Z 0 - 9 \. ] * E x c e p t i o n / , s , a ] , scope :{ 1 :"title.class" , 3 :"variable" } ,
47
- relevance :0 } , _ = { match :[ / (?< ! \. ) / , n , / \s * (? = \= [ ^ \> ] ) / ] , scope :{ 2 :"variable" } ,
48
- relevance :0 } , U = { match :[ / (?< = \= \s * \( ) / , a , "(?=\\)\\s*" + a + ")" ] , scope :{ 2 :"type" } ,
49
- relevance :0 } , M = { match :[ / \b n e w \s + / , a , o ] , scope :{ 2 :"type" } , relevance :0 } , f = {
50
- begin :/ \( (? ! ( \s * \[ ) ) / , beginScope :"punctuation" , end :/ \) / , endScope :"punctuation" ,
51
- relevance :0 , keywords :v , contains :[ y , M , L , N , C , R , p , w , { keywords :{ KEYWORDS :v } ,
52
- match :t . concat ( / (?< = \s | \( | \, ) / , l ( ...E ) , a , / \b / , / (? ! \. ) / ) , scope :"variable" ,
53
- relevance :0 } , { match :/ \, | \. / , scope :"punctuation" , relevance :0 } ] } , k = [ {
54
- match :[ t . concat ( / \b / , l ( ...S ) ) , / \? ? (?< = \. ) / , a , o ] , scope :{ 3 :"title.function.invoke"
55
- } , relevance :0 } , { match :[ / ^ \s * / , l ( ...b ) , a , o ] , scope :{ 3 :"title.function.invoke" } ,
56
- relevance :0 } ] , F = { scope :"params" , end :/ \) / , endScope :"punctuation" , relevance :0 ,
57
- keywords :v , illegal :b , contains :[ p , y , L , C , ...R , { match :/ \, | \( / , scope :"punctuation"
58
- } , w , { match :[ / (?< = \( | \, ) \s * / , a , / (? = \s ) / ] , scope :{ 2 :"type" } } , {
59
- match :[ s , a , / \s * (? = [ , ) ] ) / ] , scope :{ 2 :"variable" } } ] } , Y = [ {
60
- begin :[ / \b t r i g g e r / , s , a , s , "on" , s , a ] , beginScope :{ 1 :"keyword" , 3 :"title.class" ,
61
- 5 :"operator" , 7 :"type" } , end :/ (? = \{ ) / , returnEnd :! 0 , contains :[ L , { begin :/ \( / ,
44
+ 2 :"punctuation" } , relevance :0 } ] , f = [ { match :t . concat ( n , / \b (? ! \s * \( ) / ) , scope :"meta"
45
+ } , { scope :"meta" , begin :[ t . concat ( n , / \b / ) , / \s * / , / \( / ] , beginScope :{ 3 :"punctuation"
46
+ } , end :/ \) / , endScope :"punctuation" , contains :[ { match :[ c , / \s * = / ] , scope :{
47
+ 1 :"keyword" , 2 :"operator" } , contains :[ _ ] } , D , p ] , keywords :{ literal :S } } ] , k = {
48
+ match :[ / \b [ a - z A - Z 0 - 9 \. ] * E x c e p t i o n / , o , a ] , scope :{ 1 :"title.class" , 3 :"variable" } ,
49
+ relevance :0 } , F = { match :[ / (?< ! \. ) / , c , / \s * (? = \= [ ^ \> ] ) / ] , scope :{ 2 :"variable" } ,
50
+ relevance :0 } , Y = { match :[ / (?< = \= \s * \( ) / , a , "(?=\\)\\s*" + a + ")" ] , scope :{ 2 :"type" } ,
51
+ relevance :0 } , P = { match :[ / \b n e w \s + / , a , s ] , scope :{ 2 :"type" } , relevance :0 } ; let W = {
52
+ scope :"params_call" , begin :/ \( / , beginScope :"punctuation" , end :/ \) / ,
53
+ endScope :"punctuation" , relevance :0 , keywords :y , contains :[ ] } ; const H = [ {
54
+ match :[ / (?< = \. ) / , a , s ] , scope :{ 2 :"title.function.invoke" } , relevance :1 ,
55
+ contains :[ ...i ] , starts :W } , { match :[ / ^ \s * / , l ( ...b ) , a , s ] , scope :{
56
+ 3 :"title.function.invoke" } , relevance :1 , starts :W } ]
57
+ ; W . contains = [ D , P , I , _ , M , N , p , U , H , { keywords :{ KEYWORDS :y } ,
58
+ match :t . concat ( / (?< = \s | \( | \, ) / , l ( ...S ) , a , / \b / , / (? ! \. ) / ) , scope :"variable" ,
59
+ relevance :0 } , { match :/ \( | \, | \. / , scope :"punctuation" , relevance :0 } , { match :a ,
60
+ scope :"variable" } ] ; const x = { scope :"params" , end :/ \) / , endScope :"punctuation" ,
61
+ relevance :1 , keywords :y , contains :[ p , D , I , M , ...N , { match :/ \, | \( / , scope :"punctuation"
62
+ } , U , { match :[ / (?< = \( | \, ) \s * / , a , / (? = \s ) / ] , scope :{ 2 :"type" } } , {
63
+ match :[ o , a , / \s * (? = [ , ) ] ) / ] , scope :{ 2 :"variable" } } ] } , G = [ {
64
+ begin :[ / \b t r i g g e r / , o , a , o , "on" , o , a ] , beginScope :{ 1 :"keyword" , 3 :"title.class" ,
65
+ 5 :"operator" , 7 :"type" } , end :/ (? = \{ ) / , returnEnd :! 0 , contains :[ I , { begin :/ \( / ,
62
66
end :/ \) / , contains :[ {
63
67
match :/ \b ( 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 | m e r g e | u n d e l e t e ) \b / ,
64
- scope :"keyword" , relevance :5 } , A ] } ] } , { relevance :5 ,
68
+ scope :"keyword" , relevance :5 } , T ] } ] } , { relevance :5 ,
65
69
match :/ \b ( w i t h | w i t h o u t | i n h e r i t e d ) \s + s h a r i n g \b / , scope :"keyword" } , {
66
70
begin :[ / (? ! \. ) / , / \b c l a s s \b (? ! \? | \. ) / ] , beginScope :{ 2 :"keyword" } , end :/ (? = \{ ) / ,
67
- relevance :1 , keywords :{ type :d , keyword :b } , contains :[ { match :[ / (?< = \b c l a s s ) \s + / , a ] ,
71
+ relevance :1 , keywords :{ type :m , keyword :b } , contains :[ { match :[ / (?< = \b c l a s s ) \s + / , a ] ,
68
72
scope :{ 2 :"title.class" } } , { returnEnd :! 0 , endsWithParent :! 0 ,
69
- beginKeywords :"implements extends" , end :/ \{ / , contains :[ R , { match :[ n , / (? = \. ) / ] ,
70
- scope :{ 1 :"built_in" } } , { match :t . concat ( n , / (? = > ) / ) , scope :"type" } , {
73
+ beginKeywords :"implements extends" , end :/ \{ / , contains :[ {
71
74
match :t . concat ( / \b / , t . either ( "schedulable" , "batchable" , "queueable" , "comparable" , "callable" ) , / \b \s * (? ! > ) / ) ,
72
- scope :"title.class.inherited" , relevance :8 } , { match :t . concat ( n , / (? ! < ) / ) ,
73
- scope :"title.class.inherited" } , { match :/ < | > | , / , scope :"punctuation" } ] , relevance :0
74
- } ] } , { begin :[ / \b e n u m \s + / , a , / \s * \{ / ] , beginScope :{ 2 :"type" , 3 :"punctuation" } ,
75
- end :/ \} / , endScope :"punctuation" , relevance :0 , contains :[ L , A , { match :t . concat ( n ) ,
76
- scope :"variable.constant" } ] } , { match :[ / ( p u b l i c | p r i v a t e | p r o t e c t e d ) \s + / , a , o ] ,
77
- scope :{ 1 :"keyword" , 2 :"title.function" } , starts :F , relevance :0 } , {
78
- match :[ / (?< ! n e w ) (?< ! r e t u r n ) (?< = \< | \> | \w ) \s + / , a , o ] , scope :{ 2 :"title.function" } ,
79
- relevance :0 , starts :F } ] , P = { match :[ / \b s w i t c h \s + o n \s + / , a ] , scope :{ 1 :"keyword" ,
80
- 2 :"variable" } } , W = {
81
- keyword :[ ] . concat ( ...v . keyword ) . concat ( "ABOVE_OR_BELOW" , "ACTIVE" , "ADVANCED" , "ALL" , "ANY" , "ARRAY" , "AS" , "ASC" , "BY" , "CATEGORY" , "CONTAINS" , "CUSTOM" , "DATA" , "DESC" , "DIVISION" , "END" , "FIELDS" , "FIND" , "FROM" , "LAST" , "METADATA" , "NETWORK" , "ON" , "ORDER" , "RETURNING" , "ROLLUP" , "ROWS" , "SEARCH" , "SELECT" , "SNIPPET" , "SORT" , "SPELL_CORRECTION" , "STANDARD" , "USER_MODE" , "WHERE" , "PricebookId" , "WITH" , "SECURITY_ENFORCED" , "USING" , "SCOPE" , "Delegated" , "Everything" , "Mine" , "My_Territory" , "My_Team_Territory" , "Team" , "TYPEOF" , "ELSE" , "END" , "THEN" , "WHEN" ) . concat ( "ABOVE" , "AND" , "AT" , "BY" , "CATEGORY" , "DATA" , "FIRST" , "FOR" , "GROUP" , "HAVING" , "IN" , "LAST" , "LIKE" , "LIMIT" , "LISTVIEW" , "NOT" , "NULLS" , "OFFSET" , "OR" , "REFERENCE" , "TRACKING" , "TYPEOF" , "UPDATE" , "UPDATE" , "VIEW" , "VIEWSTAT" ) ,
75
+ scope :"title.class.inherited" , relevance :8 } , { match :[ c , / (? = \. ) / ] , scope :{
76
+ 1 :"built_in" } } , { match :t . concat ( c , / (? = \> ) / ) , scope :"type" } , { match :c ,
77
+ scope :"title.class.inherited" } , { match :/ < | > | , / , scope :"punctuation" } , N ] ,
78
+ relevance :0 } ] } , { begin :[ / \b e n u m \s + / , a , / \s * \{ / ] , beginScope :{ 2 :"type" ,
79
+ 3 :"punctuation" } , end :/ \} / , endScope :"punctuation" , relevance :0 , contains :[ I , T , {
80
+ match :t . concat ( c ) , scope :"variable.constant" } ] } , {
81
+ match :[ / ( p u b l i c | p r i v a t e | p r o t e c t e d ) \s + / , a , s ] , scope :{ 1 :"keyword" ,
82
+ 2 :"title.function" } , starts :x , relevance :1 } , {
83
+ match :[ / (?< ! n e w ) (?< ! r e t u r n ) (?< = \< | \> | \w ) \s + / , a , s ] , scope :{ 2 :"title.function" } ,
84
+ relevance :1 , starts :x } ] , B = { match :[ / \b s w i t c h \s + o n \s + / , a ] , scope :{ 1 :"keyword" ,
85
+ 2 :"variable" } } , K = {
86
+ keyword :[ ] . concat ( ...y . keyword ) . concat ( "ABOVE_OR_BELOW" , "ACTIVE" , "ADVANCED" , "ALL" , "ANY" , "ARRAY" , "AS" , "ASC" , "BY" , "CATEGORY" , "CONTAINS" , "CUSTOM" , "DATA" , "DESC" , "DIVISION" , "END" , "FIELDS" , "FIND" , "FROM" , "LAST" , "METADATA" , "NETWORK" , "ON" , "ORDER" , "RETURNING" , "ROLLUP" , "ROWS" , "SEARCH" , "SELECT" , "SNIPPET" , "SORT" , "SPELL_CORRECTION" , "STANDARD" , "USER_MODE" , "WHERE" , "PricebookId" , "WITH" , "SECURITY_ENFORCED" , "USING" , "SCOPE" , "Delegated" , "Everything" , "Mine" , "My_Territory" , "My_Team_Territory" , "Team" , "TYPEOF" , "ELSE" , "END" , "THEN" , "WHEN" ) . concat ( "ABOVE" , "AND" , "AT" , "BY" , "CATEGORY" , "DATA" , "FIRST" , "FOR" , "GROUP" , "HAVING" , "IN" , "LAST" , "LIKE" , "LIMIT" , "LISTVIEW" , "NOT" , "NULLS" , "OFFSET" , "OR" , "REFERENCE" , "TRACKING" , "TYPEOF" , "UPDATE" , "UPDATE" , "VIEW" , "VIEWSTAT" ) ,
82
87
type :[ "AVG" , "convertCurrency" , "convertTimezone" , "COUNT_DISTINCT" , "COUNT" , "DISTANCE" , "EXCLUDES" , "FORMAT" , "GEOLOCATION" , "GROUP BY CUBE" , "GROUP BY ROLLUP" , "GROUPING" , "INCLUDES" , "MAX" , "MIN" , "SUM" , "toLabel" ] ,
83
88
"title.function" :[ "DAY_IN_MONTH" , "HOUR_IN_DAY" , "DAY_IN_WEEK" , "DAY_IN_YEAR" , "DAY_ONLY" , "CALENDAR_MONTH" , "CALENDAR_QUARTER" , "CALENDAR_YEAR" , "FISCAL_MONTH" , "FISCAL_QUARTER" , "FISCAL_YEAR" , "TODAY" , "TOMORROW" , "YESTERDAY" , "WEEK_IN_MONTH" , "WEEK_IN_YEAR" ] ,
84
- literal :v . literal , built_in :S } ; return { name :"Apex" ,
89
+ literal :y . literal , built_in :g } ; return { name :"Apex" ,
85
90
aliases :[ "apex" , "lightning" , "soql" ] , case_insensitive :! 0 , disableAutodetect :! 1 ,
86
- ignoreIllegals :! 1 , keywords :v ,
91
+ ignoreIllegals :! 1 , keywords :y ,
87
92
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 \$ / , / \b _ / , "::=" , / \s # [ a - z A - Z ] / , / \s _ [ a - z A - Z ] / , / \s \$ [ a - z A - Z ] / , "#if" , "%if" , / \b i f (? ! \s + \( ) / , "%endif" , "#endif" , "#_" , / \d \s + \d / , / \w : : \w / , / \b f l o a t \b / , / ( S E L E C T | R E T U R N I N G ) \s + \* / , / E N D \s + L O O P / , / C R E A T E \s + F U N C T I O N / , / \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 m e r g e s o r t \( / , / \b v a r \s + e n v \b / , / \b d e f \b \s \W : / , / " [ ^ " ] + " / , / \( \* | \* \) / ] ,
88
- contains :[ D , U , C , L , Y , [ { match :/ a s \s + ( u s e r | s y s t e m ) \b / , scope :"keyword" } ] , i , I , {
89
- match :[ / \b f o r \b \s * / , / \( / , a , s , a , / \s * / , / : / ] , scope :{ 3 :"type" , 5 :"variable" ,
90
- 7 :"operator" } } , k , M , T , R , p , N , f , g , w , { begin :[ / \[ / , / \s * (? = ( S E L E C T | F I N D ) \b ) / ] ,
91
- end : / \] / , beginScope :{ 1 :"punctuation" } , endScope :"punctuation" , scope :"soql" ,
92
- relevance : 10 , endsWithParent :! 0 , keywords :W , contains :[ { begin :/ \b S E L E C T \b / ,
93
- beginScope : "keyword" , end :/ \b F R O M \b / , returnEnd :! 0 , keywords :W , contains :[ A , {
94
- match :[ / (? = [ \s \, ] ) / , a , / (? = [ \s \, ] ) / ] , scope :{ 2 :"subst" } } ] } , p , N , y , A , { match :/ \( | \) / ,
95
- scope :"punctuation" , relevance :0 } , ...i , { begin :[ / \b F R O M \b / , s ] , beginScope :{
93
+ contains :[ I , f , D , p , Y , M , G , [ { match :/ a s \s + ( u s e r | s y s t e m ) \b / , scope :"keyword" } ] , k , {
94
+ match :[ / \b f o r \b \s * / , / \( / , a , o , a , / \s * / , / : / ] , scope :{ 3 :"type" , 5 :"variable" ,
95
+ 7 :"operator" } } , H , P , L , N , U , { begin :[ / \[ / , / \s * (? = ( S E L E C T | F I N D ) \b ) / ] , end : / \] / ,
96
+ beginScope :{ 1 :"punctuation" } , endScope :"punctuation" , scope :"soql" , relevance : 10 ,
97
+ endsWithParent :! 0 , keywords :K , contains :[ { begin :/ \b S E L E C T \b / , beginScope : "keyword" ,
98
+ end :/ \b F R O M \b / , returnEnd :! 0 , keywords :K , contains :[ T , {
99
+ match :[ / (? = [ \s \, ] ) / , a , / (? = [ \s \, ] ) / ] , scope :{ 2 :"subst" } } ] } , p , _ , D , T , { match :/ \( | \) / ,
100
+ scope :"punctuation" , relevance :0 } , ...i , { begin :[ / \b F R O M \b / , o ] , beginScope :{
96
101
1 :"keyword" } , end :/ (? = \b W H E R E \b | \] | \s | \) ) / , contains :[ { match :a , scope :"type" } , ...i ]
97
102
} , {
98
103
match :/ ( N E X T | L A S T | T H I S ) _ ( 9 0 _ D A Y | D A Y | F I S C A L _ Q U A R T E R | F I S C A L _ Y E A R | M O N T H | Q U A R T E R | W E E K | Y E A R ) S ? \b / ,
99
104
scope :"keyword" , relevance :8 } , {
100
105
match :[ / ( N E X T | L A S T ) _ N _ ( D A Y | F I S C A L _ Q U A R T E R | F I S C A L _ Y E A R | M O N T H | Q U A R T E R | W E E K | Y E A R ) S / , / \s * : \s * / , / \d + / ] ,
101
106
scope :{ 1 :"keyword" , 2 :"operator" , 3 :"number" } , relevance :8 } , {
102
- match :[ / (?< = : ) / , / \s * / , n , / (? ! \( ) / ] , scope :{ 3 :"variable" } , relevance :0 } , {
107
+ match :[ / (?< = : ) / , / \s * / , c , / (? ! \( ) / ] , scope :{ 3 :"variable" } , relevance :0 } , {
103
108
match :[ / (?< = : | \. ) / , a , / (? = \s * \( ) / ] , scope :{ 2 :"title.function.invoke" } , relevance :0
104
- } , { match :/ : / , scope :"operator" , relevance :0 } ] , illegal :"::" } , y , P , _ ] } } } ) ( )
105
- ; export default hljsGrammar ;
109
+ } , { match :/ : / , scope :"operator" , relevance :0 } ] , illegal :"::" } , B , F , _ , C , i , {
110
+ match :t . concat ( "(?<=this.)" , a , "(?!\\()" ) , scope :"variable" } , {
111
+ match :[ t . concat ( / \b / , l ( ...O ) ) , a , o , / (? = \{ ) / ] , scope :{ 2 :"property" } , relevance :0 } ] } }
112
+ } ) ( ) ; export default hljsGrammar ;
0 commit comments