tm-grammars 1.6.3 → 1.6.4

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/README.md CHANGED
@@ -64,7 +64,7 @@ import { grammars } from 'tm-grammars'
64
64
  | `elixir` | | [elixir-editors/elixir-tmbundle](https://github.com/elixir-editors/elixir-tmbundle/blob/43c8cd957d5ac6e1abbd8730fc7a08c81a6e76c9/Syntaxes/Elixir.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/elixir-editors/elixir-tmbundle/master/LICENSE) | `html` | 16.96 kB |
65
65
  | `elm` | | [elm-tooling/elm-language-client-vscode](https://github.com/elm-tooling/elm-language-client-vscode/blob/c70351314682c2e0fae8a402ebb301da79821c37/syntaxes/elm-syntax.json) | [MIT](https://raw.githubusercontent.com/elm-tooling/elm-language-client-vscode/main/LICENSE) | `glsl` | 10.51 kB |
66
66
  | `erb` | | [textmate/ruby.tmbundle](https://github.com/textmate/ruby.tmbundle/blob/ecf0f1df23984bcff9b51552e35d9696cb0d9539/Syntaxes/HTML%20(Ruby%20-%20ERB).tmLanguage) | | `html` `ruby` | 1.90 kB |
67
- | `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/5ce71b5dcfe4b62d7c9c78fd19f79501ebf7837c/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 27.99 kB |
67
+ | `erlang` | `erl` | [erlang-ls/grammar](https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist) | [Apache-2.0](https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE) | | 30.42 kB |
68
68
  | `fish` | | [bmalehorn/vscode-fish](https://github.com/bmalehorn/vscode-fish/blob/2fe4ccc72fdcd9b9f54fbb2c05fe9b350c32d718/syntaxes/fish.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/bmalehorn/vscode-fish/master/LICENSE) | | 5.06 kB |
69
69
  | `fortran-fixed-form` | `f` `for` `f77` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/e642012094fc0a7379f204bb4e61243005afb1da/syntaxes/fortran_fixed-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | `fortran-free-form` | 905.00 B |
70
70
  | `fortran-free-form` | `f90` `f95` `f03` `f08` `f18` | [fortran-lang/vscode-fortran-support](https://github.com/fortran-lang/vscode-fortran-support/blob/f7fb41579770a0d8c75b9f295d167b31147b4f33/syntaxes/fortran_free-form.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fortran-lang/vscode-fortran-support/main/LICENSE) | | 92.92 kB |
@@ -341,6 +341,138 @@
341
341
  }
342
342
  ]
343
343
  },
344
+ "docstring": {
345
+ "comment": "It is possible to use more than 3 double quote characters as beginning and closing sequences (must be the same). Cover 3-9 characters here.",
346
+ "patterns": [
347
+ {
348
+ "include": "#docstring3"
349
+ },
350
+ {
351
+ "include": "#docstring4"
352
+ },
353
+ {
354
+ "include": "#docstring5"
355
+ },
356
+ {
357
+ "include": "#docstring6"
358
+ },
359
+ {
360
+ "include": "#docstring7"
361
+ },
362
+ {
363
+ "include": "#docstring8"
364
+ },
365
+ {
366
+ "include": "#docstring9"
367
+ }
368
+ ]
369
+ },
370
+ "docstring3": {
371
+ "begin": "(?<!\")([\"]{3}\\s*)$",
372
+ "beginCaptures": {
373
+ "1": {
374
+ "name": "punctuation.definition.docstring.begin.erlang"
375
+ }
376
+ },
377
+ "comment": "Only whitespace characters are allowed after the beggining and before the closing sequences and those cannot be in the same line",
378
+ "end": "^(\\s*[\"]{3})(?!\")",
379
+ "endCaptures": {
380
+ "1": {
381
+ "name": "punctuation.definition.docstring.end.erlang"
382
+ }
383
+ },
384
+ "name": "string.string.docstring.multi.erlang"
385
+ },
386
+ "docstring4": {
387
+ "begin": "(?<!\")([\"]{4}\\s*)$",
388
+ "beginCaptures": {
389
+ "1": {
390
+ "name": "punctuation.definition.docstring.begin.erlang"
391
+ }
392
+ },
393
+ "end": "^(\\s*[\"]{4})(?!\")",
394
+ "endCaptures": {
395
+ "1": {
396
+ "name": "punctuation.definition.docstring.end.erlang"
397
+ }
398
+ },
399
+ "name": "string.string.docstring.multi.erlang"
400
+ },
401
+ "docstring5": {
402
+ "begin": "(?<!\")([\"]{5}\\s*)$",
403
+ "beginCaptures": {
404
+ "1": {
405
+ "name": "punctuation.definition.docstring.begin.erlang"
406
+ }
407
+ },
408
+ "end": "^(\\s*[\"]{5})(?!\")",
409
+ "endCaptures": {
410
+ "1": {
411
+ "name": "punctuation.definition.docstring.end.erlang"
412
+ }
413
+ },
414
+ "name": "string.string.docstring.multi.erlang"
415
+ },
416
+ "docstring6": {
417
+ "begin": "(?<!\")([\"]{6}\\s*)$",
418
+ "beginCaptures": {
419
+ "1": {
420
+ "name": "punctuation.definition.docstring.begin.erlang"
421
+ }
422
+ },
423
+ "end": "^(\\s*[\"]{6})(?!\")",
424
+ "endCaptures": {
425
+ "1": {
426
+ "name": "punctuation.definition.docstring.end.erlang"
427
+ }
428
+ },
429
+ "name": "string.string.docstring.multi.erlang"
430
+ },
431
+ "docstring7": {
432
+ "begin": "(?<!\")([\"]{7}\\s*)$",
433
+ "beginCaptures": {
434
+ "1": {
435
+ "name": "punctuation.definition.docstring.begin.erlang"
436
+ }
437
+ },
438
+ "end": "^(\\s*[\"]{7})(?!\")",
439
+ "endCaptures": {
440
+ "1": {
441
+ "name": "punctuation.definition.docstring.end.erlang"
442
+ }
443
+ },
444
+ "name": "string.string.docstring.multi.erlang"
445
+ },
446
+ "docstring8": {
447
+ "begin": "(?<!\")([\"]{8}\\s*)$",
448
+ "beginCaptures": {
449
+ "1": {
450
+ "name": "punctuation.definition.docstring.begin.erlang"
451
+ }
452
+ },
453
+ "end": "^(\\s*[\"]{8})(?!\")",
454
+ "endCaptures": {
455
+ "1": {
456
+ "name": "punctuation.definition.docstring.end.erlang"
457
+ }
458
+ },
459
+ "name": "string.string.docstring.multi.erlang"
460
+ },
461
+ "docstring9": {
462
+ "begin": "(?<!\")([\"]{9}\\s*)$",
463
+ "beginCaptures": {
464
+ "1": {
465
+ "name": "punctuation.definition.docstring.begin.erlang"
466
+ }
467
+ },
468
+ "end": "^(\\s*[\"]{9})(?!\")",
469
+ "endCaptures": {
470
+ "1": {
471
+ "name": "punctuation.definition.docstring.end.erlang"
472
+ }
473
+ },
474
+ "name": "string.string.docstring.multi.erlang"
475
+ },
344
476
  "everything-else": {
345
477
  "patterns": [
346
478
  {
@@ -388,6 +520,9 @@
388
520
  {
389
521
  "include": "#atom"
390
522
  },
523
+ {
524
+ "include": "#docstring"
525
+ },
391
526
  {
392
527
  "include": "#string"
393
528
  },
@@ -1657,6 +1792,7 @@
1657
1792
  "name": "punctuation.definition.escape.erlang"
1658
1793
  }
1659
1794
  },
1795
+ "comment": "escape sequence",
1660
1796
  "match": "(\\\\)([bdefnrstv\\\\'\"]|(\\^)[@-_a-z]|[0-7]{1,3}|x[\\da-fA-F]{2})",
1661
1797
  "name": "constant.character.escape.erlang"
1662
1798
  },
package/index.js CHANGED
@@ -642,15 +642,15 @@ export const grammars = [
642
642
  aliases: [
643
643
  'erl',
644
644
  ],
645
- byteSize: 28659,
645
+ byteSize: 31146,
646
646
  displayName: 'Erlang',
647
- lastUpdate: '2024-04-03T14:51:26Z',
647
+ lastUpdate: '2024-04-03T07:32:37Z',
648
648
  license: 'Apache-2.0',
649
649
  licenseUrl: 'https://raw.githubusercontent.com/erlang-ls/grammar/main/LICENSE',
650
650
  name: 'erlang',
651
651
  scopeName: 'source.erlang',
652
- sha: '5ce71b5dcfe4b62d7c9c78fd19f79501ebf7837c',
653
- source: 'https://github.com/erlang-ls/grammar/blob/5ce71b5dcfe4b62d7c9c78fd19f79501ebf7837c/Erlang.plist',
652
+ sha: '2166c044337dcae6c143c140b47abb8b8fd29a4c',
653
+ source: 'https://github.com/erlang-ls/grammar/blob/2166c044337dcae6c143c140b47abb8b8fd29a4c/Erlang.plist',
654
654
  },
655
655
  {
656
656
  byteSize: 5184,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.6.3",
4
+ "version": "1.6.4",
5
5
  "packageManager": "pnpm@8.15.1",
6
6
  "description": "Collecton of TextMate grammars in JSON",
7
7
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",