tm-grammars 1.15.3 → 1.16.0

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/NOTICE CHANGED
@@ -2214,6 +2214,33 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2214
2214
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2215
2215
  SOFTWARE.
2216
2216
 
2217
+ =========================================================================================================
2218
+ Files: dotenv.json
2219
+ License: https://raw.githubusercontent.com/dotenv-org/dotenv-vscode/master/LICENSE
2220
+ SPDX: MIT
2221
+ ---------------------------------------------------------------------------------------------------------
2222
+ MIT License
2223
+
2224
+ Copyright (c) 2022 Scott Motte
2225
+
2226
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2227
+ of this software and associated documentation files (the "Software"), to deal
2228
+ in the Software without restriction, including without limitation the rights
2229
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2230
+ copies of the Software, and to permit persons to whom the Software is
2231
+ furnished to do so, subject to the following conditions:
2232
+
2233
+ The above copyright notice and this permission notice shall be included in all
2234
+ copies or substantial portions of the Software.
2235
+
2236
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2237
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2238
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2239
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2240
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2241
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2242
+ SOFTWARE.
2243
+
2217
2244
  =========================================================================================================
2218
2245
  Files: edge.json
2219
2246
  License: https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md
package/README.md CHANGED
@@ -64,6 +64,7 @@ import { grammars } from 'tm-grammars'
64
64
  | `desktop` | | [nico-castell/desktop-file-support](https://github.com/nico-castell/desktop-file-support/blob/63720f5f05313de22b68ecbd0ca3d3ed8ba57e7e/syntaxes/desktop.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nico-castell/desktop-file-support/main/LICENSE) | | 1.81 kB |
65
65
  | `diff` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/4549bd26c7b799284e0ebd8dc1e0310e6a8707a1/extensions/diff/syntaxes/diff.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 2.45 kB |
66
66
  | `docker` | `dockerfile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/docker/syntaxes/docker.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 1.51 kB |
67
+ | `dotenv` | `dotEnv` | [dotenv-org/dotenv-vscode](https://github.com/dotenv-org/dotenv-vscode/blob/e7e41baa5b23e01c1ff0567a4e596c24860e7def/syntaxes/dotenv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/dotenv-org/dotenv-vscode/master/LICENSE) | | 1.57 kB |
67
68
  | `dream-maker` | | [gbasood/vscode-atomic-dreams](https://github.com/gbasood/vscode-atomic-dreams/blob/22d2bf0325f65697ea542856280f66e9e098f4a2/syntaxes/dm.tmLanguage.json) | | | 9.99 kB |
68
69
  | `edge` | | [edge-js/edge-vscode](https://github.com/edge-js/edge-vscode/blob/04352c41981ca664598674556afa63bd393a10f3/syntaxes/edge.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/edge-js/edge-vscode/main/LICENSE.md) | `typescript` `html` `html-derivative` | 1.97 kB |
69
70
  | `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 |
@@ -0,0 +1,123 @@
1
+ {
2
+ "displayName": "dotEnv",
3
+ "name": "dotenv",
4
+ "patterns": [
5
+ {
6
+ "captures": {
7
+ "1": {
8
+ "patterns": [
9
+ {
10
+ "include": "#line-comment"
11
+ }
12
+ ]
13
+ }
14
+ },
15
+ "comment": "Full Line Comment",
16
+ "match": "^\\s?(#.*$)\\n"
17
+ },
18
+ {
19
+ "captures": {
20
+ "1": {
21
+ "patterns": [
22
+ {
23
+ "include": "#key"
24
+ }
25
+ ]
26
+ },
27
+ "2": {
28
+ "name": "keyword.operator.assignment.dotenv"
29
+ },
30
+ "3": {
31
+ "name": "property.value.dotenv",
32
+ "patterns": [
33
+ {
34
+ "include": "#line-comment"
35
+ },
36
+ {
37
+ "include": "#double-quoted-string"
38
+ },
39
+ {
40
+ "include": "#single-quoted-string"
41
+ },
42
+ {
43
+ "include": "#interpolation"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "comment": "ENV entry",
49
+ "match": "^\\s?(.*?)\\s?(\\=)(.*)$"
50
+ }
51
+ ],
52
+ "repository": {
53
+ "double-quoted-string": {
54
+ "captures": {
55
+ "1": {
56
+ "patterns": [
57
+ {
58
+ "include": "#interpolation"
59
+ },
60
+ {
61
+ "include": "#escape-characters"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ "comment": "Double Quoted String",
67
+ "match": "\"(.*)\"",
68
+ "name": "string.quoted.double.dotenv"
69
+ },
70
+ "escape-characters": {
71
+ "comment": "Escape characters",
72
+ "match": "\\\\[nrtfb\"'\\\\]|\\\\u[0123456789ABCDEF]{4}",
73
+ "name": "constant.character.escape.dotenv"
74
+ },
75
+ "interpolation": {
76
+ "captures": {
77
+ "1": {
78
+ "name": "keyword.interpolation.begin.dotenv"
79
+ },
80
+ "2": {
81
+ "name": "variable.interpolation.dotenv"
82
+ },
83
+ "3": {
84
+ "name": "keyword.interpolation.end.dotenv"
85
+ }
86
+ },
87
+ "comment": "Interpolation (variable substitution)",
88
+ "match": "(\\$\\{)(.*)(\\})"
89
+ },
90
+ "key": {
91
+ "captures": {
92
+ "1": {
93
+ "name": "keyword.key.export.dotenv"
94
+ },
95
+ "2": {
96
+ "name": "variable.key.dotenv",
97
+ "patterns": [
98
+ {
99
+ "include": "#variable"
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ "comment": "Key",
105
+ "match": "(export\\s)?(.*)"
106
+ },
107
+ "line-comment": {
108
+ "comment": "Comment",
109
+ "match": "#.*$",
110
+ "name": "comment.line.dotenv"
111
+ },
112
+ "single-quoted-string": {
113
+ "comment": "Single Quoted String",
114
+ "match": "'(.*)'",
115
+ "name": "string.quoted.single.dotenv"
116
+ },
117
+ "variable": {
118
+ "comment": "env variable",
119
+ "match": "[a-zA-Z_]+[a-zA-Z0-9_]*"
120
+ }
121
+ },
122
+ "scopeName": "source.dotenv"
123
+ }
package/index.js CHANGED
@@ -698,6 +698,20 @@ export const grammars = [
698
698
  sha: '8fdf170a0850c1cc027382f31650aaf300d3ae2a',
699
699
  source: 'https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/docker/syntaxes/docker.tmLanguage.json',
700
700
  },
701
+ {
702
+ aliases: [
703
+ 'dotEnv',
704
+ ],
705
+ byteSize: 1604,
706
+ displayName: 'dotEnv',
707
+ lastUpdate: '2023-06-15T08:23:24Z',
708
+ license: 'MIT',
709
+ licenseUrl: 'https://raw.githubusercontent.com/dotenv-org/dotenv-vscode/master/LICENSE',
710
+ name: 'dotenv',
711
+ scopeName: 'source.dotenv',
712
+ sha: 'e7e41baa5b23e01c1ff0567a4e596c24860e7def',
713
+ source: 'https://github.com/dotenv-org/dotenv-vscode/blob/e7e41baa5b23e01c1ff0567a4e596c24860e7def/syntaxes/dotenv.tmLanguage.json',
714
+ },
701
715
  {
702
716
  byteSize: 10234,
703
717
  displayName: 'Dream Maker',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.15.3",
4
+ "version": "1.16.0",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",