@salesforce/apex-tmlanguage 1.8.0 → 1.8.2

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 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.
@@ -396,7 +396,7 @@
396
396
  </dict>
397
397
  </dict>
398
398
  <key>end</key>
399
- <string>(?&lt;=\)|$)</string>
399
+ <string>(?=\s(?!\())|(?=\s*$)|(?&lt;=\s*\))</string>
400
400
  <key>patterns</key>
401
401
  <array>
402
402
  <dict>
@@ -1348,7 +1348,7 @@
1348
1348
  <key>implements-class</key>
1349
1349
  <dict>
1350
1350
  <key>begin</key>
1351
- <string>(implements)\b\s+([_[:alpha:]][_[:alnum:]]*)</string>
1351
+ <string>(implements)\b</string>
1352
1352
  <key>beginCaptures</key>
1353
1353
  <dict>
1354
1354
  <key>1</key>
@@ -1356,12 +1356,27 @@
1356
1356
  <key>name</key>
1357
1357
  <string>keyword.other.implements.apex</string>
1358
1358
  </dict>
1359
- <key>2</key>
1359
+ </dict>
1360
+ <key>patterns</key>
1361
+ <array>
1360
1362
  <dict>
1361
- <key>name</key>
1362
- <string>entity.name.type.implements.apex</string>
1363
+ <key>match</key>
1364
+ <string>([_[:alpha:]][_[:alnum:]]*)\b\s*(,)?</string>
1365
+ <key>captures</key>
1366
+ <dict>
1367
+ <key>1</key>
1368
+ <dict>
1369
+ <key>name</key>
1370
+ <string>entity.name.type.implements.apex</string>
1371
+ </dict>
1372
+ <key>2</key>
1373
+ <dict>
1374
+ <key>name</key>
1375
+ <string>punctuation.separator.comma.apex</string>
1376
+ </dict>
1377
+ </dict>
1363
1378
  </dict>
1364
- </dict>
1379
+ </array>
1365
1380
  <key>end</key>
1366
1381
  <string>(?={|extends)</string>
1367
1382
  </dict>
@@ -2663,7 +2678,7 @@
2663
2678
  <string>(?x)
2664
2679
  (switch)\b\s+
2665
2680
  (on)\b\s+
2666
- (?:([_.?\'\(\)[:alnum:]]+)\s*)?
2681
+ (.*)
2667
2682
  (\{)</string>
2668
2683
  <key>beginCaptures</key>
2669
2684
  <dict>
@@ -2782,7 +2797,7 @@
2782
2797
  <key>when-string</key>
2783
2798
  <dict>
2784
2799
  <key>begin</key>
2785
- <string>(when)(\b\s*)((\')[_.\,\'\s*[:alnum:]]+)</string>
2800
+ <string>(when)\b\s*('[^'\n]*')(,)?</string>
2786
2801
  <key>beginCaptures</key>
2787
2802
  <dict>
2788
2803
  <key>1</key>
@@ -2791,18 +2806,19 @@
2791
2806
  <string>keyword.control.switch.when.apex</string>
2792
2807
  </dict>
2793
2808
  <key>2</key>
2794
- <dict>
2795
- <key>name</key>
2796
- <string>punctuation.whitespace.apex</string>
2797
- </dict>
2798
- <key>3</key>
2799
2809
  <dict>
2800
2810
  <key>patterns</key>
2801
2811
  <array>
2802
2812
  <dict>
2803
2813
  <key>include</key>
2804
- <string>#when-string-statement</string>
2814
+ <string>#string-literal</string>
2805
2815
  </dict>
2816
+ </array>
2817
+ </dict>
2818
+ <key>3</key>
2819
+ <dict>
2820
+ <key>patterns</key>
2821
+ <array>
2806
2822
  <dict>
2807
2823
  <key>include</key>
2808
2824
  <string>#punctuation-comma</string>
@@ -2824,36 +2840,6 @@
2824
2840
  </dict>
2825
2841
  </array>
2826
2842
  </dict>
2827
- <key>when-string-statement</key>
2828
- <dict>
2829
- <key>patterns</key>
2830
- <array>
2831
- <dict>
2832
- <key>name</key>
2833
- <string>string.quoted.single.apex</string>
2834
- <key>begin</key>
2835
- <string>\'</string>
2836
- <key>beginCaptures</key>
2837
- <dict>
2838
- <key>0</key>
2839
- <dict>
2840
- <key>name</key>
2841
- <string>punctuation.definition.string.begin.apex</string>
2842
- </dict>
2843
- </dict>
2844
- <key>end</key>
2845
- <string>\'</string>
2846
- <key>endCaptures</key>
2847
- <dict>
2848
- <key>0</key>
2849
- <dict>
2850
- <key>name</key>
2851
- <string>punctuation.definition.string.end.apex</string>
2852
- </dict>
2853
- </dict>
2854
- </dict>
2855
- </array>
2856
- </dict>
2857
2843
  <key>when-else-statement</key>
2858
2844
  <dict>
2859
2845
  <key>begin</key>