tm-grammars 1.16.3 → 1.17.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
@@ -2047,6 +2047,32 @@ furnished to do so, subject to the following conditions:
2047
2047
  The above copyright notice and this permission notice shall be included in all
2048
2048
  copies or substantial portions of the Software.
2049
2049
 
2050
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2051
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2052
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2053
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2054
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2055
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2056
+ SOFTWARE.
2057
+ =========================================================================================================
2058
+ Files: coq.json
2059
+ License: https://raw.githubusercontent.com/coq-community/vscoq/main/LICENSE
2060
+ SPDX: MIT
2061
+ ---------------------------------------------------------------------------------------------------------
2062
+ MIT License
2063
+
2064
+ Copyright (c) INRIA and contributors
2065
+
2066
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2067
+ of this software and associated documentation files (the "Software"), to deal
2068
+ in the Software without restriction, including without limitation the rights
2069
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2070
+ copies of the Software, and to permit persons to whom the Software is
2071
+ furnished to do so, subject to the following conditions:
2072
+
2073
+ The above copyright notice and this permission notice shall be included in all
2074
+ copies or substantial portions of the Software.
2075
+
2050
2076
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2051
2077
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2052
2078
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
package/README.md CHANGED
@@ -51,6 +51,7 @@ import { grammars } from 'tm-grammars'
51
51
  | `codeql` | `ql` | [github/vscode-codeql](https://github.com/github/vscode-codeql/blob/47fa163cb9fffce379458962eb391c9ef9082dcb/syntaxes/ql.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md) | | 32.73 kB |
52
52
  | `coffee` | `coffeescript` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ff58f5083f57b50e6a100ab60454dfb72fe21e80/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` | 26.34 kB |
53
53
  | `common-lisp` | `lisp` | [qingpeng9802/vscode-common-lisp](https://github.com/qingpeng9802/vscode-common-lisp/blob/79d04dc9ca80d98e65c4f28b3d67a24a7829b18f/syntaxes/commonlisp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/qingpeng9802/vscode-common-lisp/master/LICENSE) | | 23.50 kB |
54
+ | `coq` | | [coq-community/vscoq](https://github.com/coq-community/vscoq/blob/ea0e57916a9c2c74397fbc68ef9392441f116bfe/client/syntax/coq.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/coq-community/vscoq/main/LICENSE) | | 5.51 kB |
54
55
  | `cpp` | `c++` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp-macro` `regexp` `glsl` `sql` | 411.01 kB |
55
56
  | `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/c920b0931ec5f05b78447dbff31b172c64f1d734/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.60 kB |
56
57
  | `csharp` | `c#` `cs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ed4e6eda599f37bac9a11952403a6e63fd4f5a4d/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 83.26 kB |
@@ -210,7 +211,7 @@ import { grammars } from 'tm-grammars'
210
211
  | `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | 3.50 kB |
211
212
  | `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/82ae07ffe96656181ad8265c1fff008c8d1cdbba/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | `css` `javascript` `scss` `php` `python` `ruby` | 20.64 kB |
212
213
  | `typescript` | `ts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 177.10 kB |
213
- | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/7900f29d65c9f37584100fdfbfd0f6409b7381e7/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | 26.20 kB |
214
+ | `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/675e6d480db6366c312e4279da0e3bca5b1be04f/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | 26.31 kB |
214
215
  | `typst` | `typ` | [nvarner/typst-lsp](https://github.com/nvarner/typst-lsp/blob/6972d4b9c2cbcb0551e203067f09ec84ca8f9df3/editors/vscode/typst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt) | | 7.98 kB |
215
216
  | `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/b1f529602bc6536ad8967373302e151e77179598/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | 12.76 kB |
216
217
  | `vala` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/vala.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | 3.14 kB |
@@ -0,0 +1,231 @@
1
+ {
2
+ "displayName": "Coq",
3
+ "fileTypes": [
4
+ "v"
5
+ ],
6
+ "name": "coq",
7
+ "patterns": [
8
+ {
9
+ "comment": "Vernacular import keywords",
10
+ "match": "\\b(From|Require|Import|Export|Local|Global|Include)\\b",
11
+ "name": "keyword.control.import.coq"
12
+ },
13
+ {
14
+ "comment": "Vernacular scope keywords",
15
+ "match": "\\b((Open|Close|Delimit|Undelimit|Bind)\\s+Scope)\\b",
16
+ "name": "keyword.control.import.coq"
17
+ },
18
+ {
19
+ "captures": {
20
+ "1": {
21
+ "name": "keyword.source.coq"
22
+ },
23
+ "2": {
24
+ "name": "entity.name.function.theorem.coq"
25
+ }
26
+ },
27
+ "comment": "Theorem declarations",
28
+ "match": "(Theorem|Lemma|Remark|Fact|Corollary|Property|Proposition|Goal)\\s+((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
29
+ },
30
+ {
31
+ "captures": {
32
+ "1": {
33
+ "name": "keyword.source.coq"
34
+ },
35
+ "2": {
36
+ "name": "keyword.source.coq"
37
+ },
38
+ "3": {
39
+ "name": "entity.name.assumption.coq"
40
+ }
41
+ },
42
+ "comment": "Assumptions",
43
+ "match": "\\b(Parameters?|Axioms?|Conjectures?|Variables?|Hypothesis|Hypotheses)(\\s+Inline)?\\b\\s*\\(?\\s*((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
44
+ },
45
+ {
46
+ "captures": {
47
+ "1": {
48
+ "name": "keyword.source.coq"
49
+ },
50
+ "3": {
51
+ "name": "entity.name.assumption.coq"
52
+ }
53
+ },
54
+ "comment": "Context",
55
+ "match": "\\b(Context)\\b\\s*`?\\s*(\\(|\\{)?\\s*((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
56
+ },
57
+ {
58
+ "captures": {
59
+ "1": {
60
+ "name": "keyword.source.coq"
61
+ },
62
+ "2": {
63
+ "name": "keyword.source.coq"
64
+ },
65
+ "3": {
66
+ "name": "entity.name.function.coq"
67
+ }
68
+ },
69
+ "comment": "Definitions",
70
+ "match": "(\\b(?:Program|Local)\\s+)?\\b(Definition|Fixpoint|CoFixpoint|Function|Example|Let(?:\\s+Fixpoint|\\s+CoFixpoint)?|Instance|Equations|Equations?)\\s+((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
71
+ },
72
+ {
73
+ "captures": {
74
+ "1": {
75
+ "name": "keyword.source.coq"
76
+ }
77
+ },
78
+ "comment": "Obligations",
79
+ "match": "\\b((Show\\s+)?Obligation\\s+Tactic|Obligations\\s+of|Obligation|Next\\s+Obligation(\\s+of)?|Solve\\s+Obligations(\\s+of)?|Solve\\s+All\\s+Obligations|Admit\\s+Obligations(\\s+of)?|Instance)\\b"
80
+ },
81
+ {
82
+ "captures": {
83
+ "1": {
84
+ "name": "keyword.source.coq"
85
+ },
86
+ "3": {
87
+ "name": "entity.name.type.coq"
88
+ }
89
+ },
90
+ "comment": "Type declarations",
91
+ "match": "(CoInductive|Inductive|Variant|Record|Structure|Class)\\s+(>\\s*)?((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
92
+ },
93
+ {
94
+ "captures": {
95
+ "1": {
96
+ "name": "keyword.source.coq"
97
+ },
98
+ "2": {
99
+ "name": "entity.name.function.ltac"
100
+ }
101
+ },
102
+ "comment": "Ltac declarations",
103
+ "match": "(Ltac)\\s+((\\p{L}|[_\\u00A0])(\\p{L}|[0-9_\\u00A0'])*)"
104
+ },
105
+ {
106
+ "comment": "Vernacular keywords",
107
+ "match": "\\b(Hint|Constructors|Resolve|Rewrite|Ltac|Implicit(\\s+Types)?|Set|Unset|Remove\\s+Printing|Arguments|Tactic\\s+Notation|Notation|Infix|Reserved\\s+Notation|Section|Module\\s+Type|Module|End|Check|Print|Eval|Search|Universe|Coercions?|Generalizable\\s+All|Generalizable\\s+Variable?|Existing\\s+Instance|Existing\\s+Class|Canonical|About|Locate|Collection|Typeclasses\\s+(Opaque|Transparent))\\b",
108
+ "name": "keyword.source.coq"
109
+ },
110
+ {
111
+ "comment": "Proof keywords",
112
+ "match": "\\b(Proof|Qed|Defined|Save|Abort(\\s+All)?|Undo(\\s+To)?|Restart|Focus|Unfocus|Unfocused|Show\\s+Proof|Show\\s+Existentials|Show|Unshelve)\\b",
113
+ "name": "keyword.source.coq"
114
+ },
115
+ {
116
+ "comment": "Vernacular Debug keywords",
117
+ "match": "\\b(Quit|Drop|Time|Redirect|Timeout|Fail)\\b",
118
+ "name": "keyword.debug.coq"
119
+ },
120
+ {
121
+ "comment": "Admits are bad",
122
+ "match": "\\b(admit|Admitted)\\b",
123
+ "name": "invalid.illegal.admit.coq"
124
+ },
125
+ {
126
+ "comment": "Operators",
127
+ "match": ":|\\||=|<|>|\\*|\\+|-|\\{|\\}|≠|∨|∧|↔|¬|→|≤|≥",
128
+ "name": "keyword.operator.coq"
129
+ },
130
+ {
131
+ "comment": "Type keywords",
132
+ "match": "\\b(forall|exists|Type|Set|Prop|nat|bool|option|list|unit|sum|prod|comparison|Empty_set)\\b|∀|∃",
133
+ "name": "support.type.coq"
134
+ },
135
+ {
136
+ "comment": "Ltac keywords",
137
+ "match": "\\b(try|repeat|rew|progress|fresh|solve|now|first|tryif|at|once|do|only)\\b",
138
+ "name": "keyword.control.ltac"
139
+ },
140
+ {
141
+ "comment": "Common Ltac connectors",
142
+ "match": "\\b(into|with|eqn|by|move|as|using)\\b",
143
+ "name": "keyword.control.ltac"
144
+ },
145
+ {
146
+ "comment": "Gallina keywords",
147
+ "match": "\\b(match|lazymatch|multimatch|fun|with|return|end|let|in|if|then|else|fix|for|where|and)\\b|λ",
148
+ "name": "keyword.control.gallina"
149
+ },
150
+ {
151
+ "comment": "Ltac builtins",
152
+ "match": "\\b(intro|intros|revert|induction|destruct|auto|eauto|tauto|eassumption|apply|eapply|assumption|constructor|econstructor|reflexivity|inversion|injection|assert|split|esplit|omega|fold|unfold|specialize|rewrite|erewrite|change|symmetry|refine|simpl|intuition|firstorder|generalize|idtac|exist|exists|eexists|elim|eelim|rename|subst|congruence|trivial|left|right|set|pose|discriminate|clear|clearbody|contradict|contradiction|exact|dependent|remember|case|easy|unshelve|pattern|transitivity|etransitivity|f_equal|exfalso|replace|abstract|cycle|swap|revgoals|shelve|unshelve)\\b",
153
+ "name": "support.function.builtin.ltac"
154
+ },
155
+ {
156
+ "applyEndPatternLast": 1,
157
+ "begin": "\\(\\*(?!#)",
158
+ "end": "\\*\\)",
159
+ "name": "comment.block.coq",
160
+ "patterns": [
161
+ {
162
+ "include": "#block_comment"
163
+ },
164
+ {
165
+ "include": "#block_double_quoted_string"
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "match": "\\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\\.[0-9]+)?))\\b",
171
+ "name": "constant.numeric.gallina"
172
+ },
173
+ {
174
+ "comment": "Gallina builtin constructors",
175
+ "match": "\\b(True|False|tt|false|true|Some|None|nil|cons|pair|inl|inr|O|S|Eq|Lt|Gt|id|ex|all|unique)\\b",
176
+ "name": "constant.language.constructor.gallina"
177
+ },
178
+ {
179
+ "match": "\\b_\\b",
180
+ "name": "constant.language.wildcard.coq"
181
+ },
182
+ {
183
+ "begin": "\"",
184
+ "beginCaptures": {
185
+ "0": {
186
+ "name": "punctuation.definition.string.begin.coq"
187
+ }
188
+ },
189
+ "end": "\"",
190
+ "endCaptures": {
191
+ "0": {
192
+ "name": "punctuation.definition.string.end.coq"
193
+ }
194
+ },
195
+ "name": "string.quoted.double.coq"
196
+ }
197
+ ],
198
+ "repository": {
199
+ "block_comment": {
200
+ "applyEndPatternLast": 1,
201
+ "begin": "\\(\\*(?!#)",
202
+ "end": "\\*\\)",
203
+ "name": "comment.block.coq",
204
+ "patterns": [
205
+ {
206
+ "include": "#block_comment"
207
+ },
208
+ {
209
+ "include": "#block_double_quoted_string"
210
+ }
211
+ ]
212
+ },
213
+ "block_double_quoted_string": {
214
+ "applyEndPatternLast": 1,
215
+ "begin": "\"",
216
+ "beginCaptures": {
217
+ "0": {
218
+ "name": "punctuation.definition.string.begin.coq"
219
+ }
220
+ },
221
+ "end": "\"",
222
+ "endCaptures": {
223
+ "0": {
224
+ "name": "punctuation.definition.string.end.coq"
225
+ }
226
+ },
227
+ "name": "string.quoted.double.coq"
228
+ }
229
+ },
230
+ "scopeName": "source.coq"
231
+ }
@@ -1397,7 +1397,7 @@
1397
1397
  "name": "keyword.operator.assignment.tsp"
1398
1398
  }
1399
1399
  },
1400
- "end": "=",
1400
+ "end": "(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
1401
1401
  "endCaptures": {
1402
1402
  "0": {
1403
1403
  "name": "keyword.operator.assignment.tsp"
package/index.js CHANGED
@@ -506,6 +506,20 @@ export const grammars = [
506
506
  sha: '79d04dc9ca80d98e65c4f28b3d67a24a7829b18f',
507
507
  source: 'https://github.com/qingpeng9802/vscode-common-lisp/blob/79d04dc9ca80d98e65c4f28b3d67a24a7829b18f/syntaxes/commonlisp.tmLanguage.json',
508
508
  },
509
+ {
510
+ byteSize: 5642,
511
+ categories: [
512
+ 'general',
513
+ ],
514
+ displayName: 'Coq',
515
+ lastUpdate: '2024-05-19T17:37:43Z',
516
+ license: 'MIT',
517
+ licenseUrl: 'https://raw.githubusercontent.com/coq-community/vscoq/main/LICENSE',
518
+ name: 'coq',
519
+ scopeName: 'source.coq',
520
+ sha: 'ea0e57916a9c2c74397fbc68ef9392441f116bfe',
521
+ source: 'https://github.com/coq-community/vscoq/blob/ea0e57916a9c2c74397fbc68ef9392441f116bfe/client/syntax/coq.tmLanguage.json',
522
+ },
509
523
  {
510
524
  aliases: [
511
525
  'c++',
@@ -3043,15 +3057,15 @@ export const grammars = [
3043
3057
  aliases: [
3044
3058
  'tsp',
3045
3059
  ],
3046
- byteSize: 26831,
3060
+ byteSize: 26946,
3047
3061
  displayName: 'TypeSpec',
3048
- lastUpdate: '2024-07-08T17:27:00Z',
3062
+ lastUpdate: '2024-08-08T21:42:27Z',
3049
3063
  license: 'MIT',
3050
3064
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE',
3051
3065
  name: 'typespec',
3052
3066
  scopeName: 'source.tsp',
3053
- sha: '7900f29d65c9f37584100fdfbfd0f6409b7381e7',
3054
- source: 'https://github.com/microsoft/typespec/blob/7900f29d65c9f37584100fdfbfd0f6409b7381e7/grammars/typespec.json',
3067
+ sha: '675e6d480db6366c312e4279da0e3bca5b1be04f',
3068
+ source: 'https://github.com/microsoft/typespec/blob/675e6d480db6366c312e4279da0e3bca5b1be04f/grammars/typespec.json',
3055
3069
  },
3056
3070
  {
3057
3071
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.16.3",
4
+ "version": "1.17.0",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",