@salesforce/apex-tmlanguage 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -25
- package/grammars/apex.tmLanguage +60 -60
- package/grammars/apex.tmLanguage.cson +1318 -1318
- package/grammars/soql.tmLanguage +60 -60
- package/package.json +27 -30
package/LICENSE
CHANGED
|
@@ -27,28 +27,3 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
|
27
27
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
28
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
29
29
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
---------------------------------------------------------------------------------------------
|
|
31
|
-
|
|
32
|
-
License for source code copied from https://github.com/dotnet/csharp-tmLanguage:
|
|
33
|
-
|
|
34
|
-
MIT License
|
|
35
|
-
|
|
36
|
-
Copyright (c) 2016 .NET Foundation
|
|
37
|
-
|
|
38
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
39
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
40
|
-
in the Software without restriction, including without limitation the rights
|
|
41
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
42
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
43
|
-
furnished to do so, subject to the following conditions:
|
|
44
|
-
|
|
45
|
-
The above copyright notice and this permission notice shall be included in all
|
|
46
|
-
copies or substantial portions of the Software.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
50
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
51
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
52
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
53
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
54
|
-
SOFTWARE.
|
package/grammars/apex.tmLanguage
CHANGED
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
</dict>
|
|
397
397
|
</dict>
|
|
398
398
|
<key>end</key>
|
|
399
|
-
<string>(?<=\)
|
|
399
|
+
<string>(?=\s(?!\())|(?=\s*$)|(?<=\s*\))</string>
|
|
400
400
|
<key>patterns</key>
|
|
401
401
|
<array>
|
|
402
402
|
<dict>
|
|
@@ -1914,15 +1914,15 @@
|
|
|
1914
1914
|
<dict>
|
|
1915
1915
|
<key>begin</key>
|
|
1916
1916
|
<string>(?x)
|
|
1917
|
-
(?<
|
|
1917
|
+
(?<type_name>
|
|
1918
1918
|
(?:
|
|
1919
1919
|
(?:
|
|
1920
1920
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
1921
|
-
(?<
|
|
1921
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
1922
1922
|
\g<identifier>\s*
|
|
1923
|
-
(?<
|
|
1923
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
1924
1924
|
)
|
|
1925
|
-
(?:\s*\.\s*\g<
|
|
1925
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
1926
1926
|
)
|
|
1927
1927
|
(?:\s*\?\s*)? # nullable suffix?
|
|
1928
1928
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -1985,25 +1985,25 @@
|
|
|
1985
1985
|
<key>begin</key>
|
|
1986
1986
|
<string>(?x)
|
|
1987
1987
|
(?!.*\b(?:class|interface|enum)\b)\s*
|
|
1988
|
-
(?<
|
|
1989
|
-
(?<
|
|
1988
|
+
(?<return_type>
|
|
1989
|
+
(?<type_name>
|
|
1990
1990
|
(?:
|
|
1991
1991
|
(?:ref\s+)? # ref return
|
|
1992
1992
|
(?:
|
|
1993
1993
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
1994
|
-
(?<
|
|
1994
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
1995
1995
|
\g<identifier>\s*
|
|
1996
|
-
(?<
|
|
1996
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
1997
1997
|
)
|
|
1998
|
-
(?:\s*\.\s*\g<
|
|
1998
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
1999
1999
|
)
|
|
2000
2000
|
(?:\s*\?\s*)? # nullable suffix?
|
|
2001
2001
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
2002
2002
|
)
|
|
2003
2003
|
)\s+
|
|
2004
2004
|
)
|
|
2005
|
-
(?<
|
|
2006
|
-
(?<
|
|
2005
|
+
(?<interface_name>\g<type_name>\s*\.\s*)?
|
|
2006
|
+
(?<property_name>\g<identifier>)\s*
|
|
2007
2007
|
(?=\{|=>|$)</string>
|
|
2008
2008
|
<key>beginCaptures</key>
|
|
2009
2009
|
<dict>
|
|
@@ -2067,25 +2067,25 @@
|
|
|
2067
2067
|
<dict>
|
|
2068
2068
|
<key>begin</key>
|
|
2069
2069
|
<string>(?x)
|
|
2070
|
-
(?<
|
|
2071
|
-
(?<
|
|
2070
|
+
(?<return_type>
|
|
2071
|
+
(?<type_name>
|
|
2072
2072
|
(?:
|
|
2073
2073
|
(?:ref\s+)? # ref return
|
|
2074
2074
|
(?:
|
|
2075
2075
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
2076
|
-
(?<
|
|
2076
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
2077
2077
|
\g<identifier>\s*
|
|
2078
|
-
(?<
|
|
2078
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
2079
2079
|
)
|
|
2080
|
-
(?:\s*\.\s*\g<
|
|
2080
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
2081
2081
|
)
|
|
2082
2082
|
(?:\s*\?\s*)? # nullable suffix?
|
|
2083
2083
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
2084
2084
|
)
|
|
2085
2085
|
)\s+
|
|
2086
2086
|
)
|
|
2087
|
-
(?<
|
|
2088
|
-
(?<
|
|
2087
|
+
(?<interface_name>\g<type_name>\s*\.\s*)?
|
|
2088
|
+
(?<indexer_name>this)\s*
|
|
2089
2089
|
(?=\[)</string>
|
|
2090
2090
|
<key>beginCaptures</key>
|
|
2091
2091
|
<dict>
|
|
@@ -2205,24 +2205,24 @@
|
|
|
2205
2205
|
<dict>
|
|
2206
2206
|
<key>begin</key>
|
|
2207
2207
|
<string>(?x)
|
|
2208
|
-
(?<
|
|
2209
|
-
(?<
|
|
2208
|
+
(?<return_type>
|
|
2209
|
+
(?<type_name>
|
|
2210
2210
|
(?:
|
|
2211
2211
|
(?:ref\s+)? # ref return
|
|
2212
2212
|
(?:
|
|
2213
2213
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
2214
|
-
(?<
|
|
2214
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
2215
2215
|
\g<identifier>\s*
|
|
2216
|
-
(?<
|
|
2216
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
2217
2217
|
)
|
|
2218
|
-
(?:\s*\.\s*\g<
|
|
2218
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
2219
2219
|
)
|
|
2220
2220
|
(?:\s*\?\s*)? # nullable suffix?
|
|
2221
2221
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
2222
2222
|
)
|
|
2223
2223
|
)\s+
|
|
2224
2224
|
)
|
|
2225
|
-
(?<
|
|
2225
|
+
(?<interface_name>\g<type_name>\s*\.\s*)?
|
|
2226
2226
|
(\g<identifier>)\s*
|
|
2227
2227
|
(<([^<>]+)>)?\s*
|
|
2228
2228
|
(?=\()</string>
|
|
@@ -3235,15 +3235,15 @@
|
|
|
3235
3235
|
<dict>
|
|
3236
3236
|
<key>match</key>
|
|
3237
3237
|
<string>(?x)
|
|
3238
|
-
(?<
|
|
3238
|
+
(?<type_name>
|
|
3239
3239
|
(?:
|
|
3240
3240
|
(?:
|
|
3241
3241
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
3242
|
-
(?<
|
|
3242
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
3243
3243
|
\g<identifier>\s*
|
|
3244
|
-
(?<
|
|
3244
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
3245
3245
|
)
|
|
3246
|
-
(?:\s*\.\s*\g<
|
|
3246
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
3247
3247
|
)
|
|
3248
3248
|
(?:\s*\?\s*)? # nullable suffix?
|
|
3249
3249
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -3305,16 +3305,16 @@
|
|
|
3305
3305
|
<string>(?x)
|
|
3306
3306
|
(?:
|
|
3307
3307
|
(?:(\bref)\s+)?(\bvar\b)| # ref local
|
|
3308
|
-
(?<
|
|
3308
|
+
(?<type_name>
|
|
3309
3309
|
(?:
|
|
3310
3310
|
(?:ref\s+)? # ref local
|
|
3311
3311
|
(?:
|
|
3312
3312
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
3313
|
-
(?<
|
|
3313
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
3314
3314
|
\g<identifier>\s*
|
|
3315
|
-
(?<
|
|
3315
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
3316
3316
|
)
|
|
3317
|
-
(?:\s*\.\s*\g<
|
|
3317
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
3318
3318
|
)
|
|
3319
3319
|
(?:\s*\?\s*)? # nullable suffix?
|
|
3320
3320
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -3383,16 +3383,16 @@
|
|
|
3383
3383
|
<dict>
|
|
3384
3384
|
<key>begin</key>
|
|
3385
3385
|
<string>(?x)
|
|
3386
|
-
(?<
|
|
3387
|
-
(?<
|
|
3386
|
+
(?<const_keyword>\b(?:const)\b)\s*
|
|
3387
|
+
(?<type_name>
|
|
3388
3388
|
(?:
|
|
3389
3389
|
(?:
|
|
3390
3390
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
3391
|
-
(?<
|
|
3391
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
3392
3392
|
\g<identifier>\s*
|
|
3393
|
-
(?<
|
|
3393
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
3394
3394
|
)
|
|
3395
|
-
(?:\s*\.\s*\g<
|
|
3395
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
3396
3396
|
)
|
|
3397
3397
|
(?:\s*\?\s*)? # nullable suffix?
|
|
3398
3398
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -3796,15 +3796,15 @@
|
|
|
3796
3796
|
<key>match</key>
|
|
3797
3797
|
<string>(?x)
|
|
3798
3798
|
(\()\s*
|
|
3799
|
-
(?<
|
|
3799
|
+
(?<type_name>
|
|
3800
3800
|
(?:
|
|
3801
3801
|
(?:
|
|
3802
3802
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
3803
|
-
(?<
|
|
3803
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
3804
3804
|
\g<identifier>\s*
|
|
3805
|
-
(?<
|
|
3805
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
3806
3806
|
)
|
|
3807
|
-
(?:\s*\.\s*\g<
|
|
3807
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
3808
3808
|
)
|
|
3809
3809
|
(?:\s*\?\s*)? # nullable suffix?
|
|
3810
3810
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -3858,7 +3858,7 @@
|
|
|
3858
3858
|
<string>(?x)
|
|
3859
3859
|
(?:(\??\.)\s*)? # safe navigator or accessor
|
|
3860
3860
|
(@?[_[:alpha:]][_[:alnum:]]*)\s* # method name
|
|
3861
|
-
(?<
|
|
3861
|
+
(?<type_args>\s*<([^<>]|\g<type_args>)+>\s*)?\s* # type arguments
|
|
3862
3862
|
(?=\() # open paren of argument list</string>
|
|
3863
3863
|
<key>beginCaptures</key>
|
|
3864
3864
|
<dict>
|
|
@@ -3985,7 +3985,7 @@
|
|
|
3985
3985
|
<string>(?x)
|
|
3986
3986
|
(\??\.)?\s*
|
|
3987
3987
|
(@?[_[:alpha:]][_[:alnum:]]*)
|
|
3988
|
-
(?<
|
|
3988
|
+
(?<type_params>\s*<([^<>]|\g<type_params>)+>\s*)
|
|
3989
3989
|
(?=
|
|
3990
3990
|
(\s*\?)?
|
|
3991
3991
|
\s*\.\s*@?[_[:alpha:]][_[:alnum:]]*
|
|
@@ -4066,15 +4066,15 @@
|
|
|
4066
4066
|
<string>(?x)
|
|
4067
4067
|
(delete|insert|undelete|update|upsert)?
|
|
4068
4068
|
\s*(new)\s+
|
|
4069
|
-
(?<
|
|
4069
|
+
(?<type_name>
|
|
4070
4070
|
(?:
|
|
4071
4071
|
(?:
|
|
4072
4072
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
4073
|
-
(?<
|
|
4073
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
4074
4074
|
\g<identifier>\s*
|
|
4075
|
-
(?<
|
|
4075
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
4076
4076
|
)
|
|
4077
|
-
(?:\s*\.\s*\g<
|
|
4077
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
4078
4078
|
)
|
|
4079
4079
|
(?:\s*\?\s*)? # nullable suffix?
|
|
4080
4080
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -4124,15 +4124,15 @@
|
|
|
4124
4124
|
<string>(?x)
|
|
4125
4125
|
(delete|insert|undelete|update|upsert)?
|
|
4126
4126
|
\s*(new)\s+
|
|
4127
|
-
(?<
|
|
4127
|
+
(?<type_name>
|
|
4128
4128
|
(?:
|
|
4129
4129
|
(?:
|
|
4130
4130
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
4131
|
-
(?<
|
|
4131
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
4132
4132
|
\g<identifier>\s*
|
|
4133
|
-
(?<
|
|
4133
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
4134
4134
|
)
|
|
4135
|
-
(?:\s*\.\s*\g<
|
|
4135
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
4136
4136
|
)
|
|
4137
4137
|
(?:\s*\?\s*)? # nullable suffix?
|
|
4138
4138
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -4172,15 +4172,15 @@
|
|
|
4172
4172
|
<key>begin</key>
|
|
4173
4173
|
<string>(?x)
|
|
4174
4174
|
\b(new)\b\s*
|
|
4175
|
-
(?<
|
|
4175
|
+
(?<type_name>
|
|
4176
4176
|
(?:
|
|
4177
4177
|
(?:
|
|
4178
4178
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
4179
|
-
(?<
|
|
4179
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
4180
4180
|
\g<identifier>\s*
|
|
4181
|
-
(?<
|
|
4181
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
4182
4182
|
)
|
|
4183
|
-
(?:\s*\.\s*\g<
|
|
4183
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
4184
4184
|
)
|
|
4185
4185
|
(?:\s*\?\s*)? # nullable suffix?
|
|
4186
4186
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|
|
@@ -4266,16 +4266,16 @@
|
|
|
4266
4266
|
<key>match</key>
|
|
4267
4267
|
<string>(?x)
|
|
4268
4268
|
(?:(?:\b(this)\b)\s+)?
|
|
4269
|
-
(?<
|
|
4269
|
+
(?<type_name>
|
|
4270
4270
|
(?:
|
|
4271
4271
|
(?:ref\s+)? # ref return
|
|
4272
4272
|
(?:
|
|
4273
4273
|
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\s*\:\:\s*)? # alias-qualification
|
|
4274
|
-
(?<
|
|
4274
|
+
(?<name_and_type_args> # identifier + type arguments (if any)
|
|
4275
4275
|
\g<identifier>\s*
|
|
4276
|
-
(?<
|
|
4276
|
+
(?<type_args>\s*<(?:[^<>]|\g<type_args>)+>\s*)?
|
|
4277
4277
|
)
|
|
4278
|
-
(?:\s*\.\s*\g<
|
|
4278
|
+
(?:\s*\.\s*\g<name_and_type_args>)*
|
|
4279
4279
|
)
|
|
4280
4280
|
(?:\s*\?\s*)? # nullable suffix?
|
|
4281
4281
|
(?:\s*\[(?:\s*,\s*)*\]\s*)* # array suffix?
|