tm-grammars 1.24.23 → 1.24.24
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 +1 -1
- package/grammars/lean.json +32 -12
- package/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -126,7 +126,7 @@ import { grammars } from 'tm-grammars'
|
|
|
126
126
|
| `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/626e20d5c51a4379c4c0ee293aa89e58b5232aec/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | | 8.19 kB |
|
|
127
127
|
| `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/2628495122cd3b0cc4b4c6ba6e0f6efd621ed9f6/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | | 14.28 kB |
|
|
128
128
|
| `latex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e6cffb21362b6d7addb977ff7db14f0681228780/extensions/latex/syntaxes/LaTeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `tex` `shellscript` `css` `gnuplot` `haskell` `html` `java` `julia` `javascript` `lua` `python` `ruby` `rust` `typescript` `xml` `yaml` `scala` | 67.56 kB |
|
|
129
|
-
| `lean` | `lean4` | [leanprover/vscode-lean4](https://github.com/leanprover/vscode-lean4/blob/
|
|
129
|
+
| `lean` | `lean4` | [leanprover/vscode-lean4](https://github.com/leanprover/vscode-lean4/blob/7071db855efdc3286a22376704b2279633cba614/vscode-lean4/syntaxes/lean4.json) | [Apache-2.0](https://raw.githubusercontent.com/leanprover/vscode-lean4/master/LICENSE) | | | 5.42 kB |
|
|
130
130
|
| `less` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/03dc55030b3b2b5c4779d4ac1e2e46cd1f5a6b7c/extensions/less/syntaxes/less.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 92.58 kB |
|
|
131
131
|
| `liquid` | | [Shopify/liquid-tm-grammar](https://github.com/Shopify/liquid-tm-grammar/blob/099adcf0d4beacd078a22432eaeab08d6f1e6da5/grammars/liquid.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/Shopify/liquid-tm-grammar/main/LICENSE.md) | | `html` `css` `json` `javascript` | 16.94 kB |
|
|
132
132
|
| `llvm` | | [llvm/llvm-project](https://github.com/llvm/llvm-project/blob/224873d7acab430d29c978136418c40fa028a40d/llvm/utils/vscode/llvm/syntaxes/ll.tmLanguage.yaml) | [NOASSERTION](https://raw.githubusercontent.com/llvm/llvm-project/main/LICENSE.TXT) | | | 4.55 kB |
|
package/grammars/lean.json
CHANGED
|
@@ -12,23 +12,43 @@
|
|
|
12
12
|
"name": "storage.type.lean4"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"
|
|
16
|
-
|
|
15
|
+
"captures": {
|
|
16
|
+
"1": {
|
|
17
|
+
"name": "storage.modifier.lean4"
|
|
18
|
+
},
|
|
19
|
+
"2": {
|
|
20
|
+
"name": "storage.modifier.lean4"
|
|
21
|
+
},
|
|
22
|
+
"3": {
|
|
23
|
+
"name": "storage.modifier.lean4"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"match": "\\b(attribute\\b\\s*)(?:(\\[[^]\\s]*])|\\[([^]\\s]*))"
|
|
17
27
|
},
|
|
18
28
|
{
|
|
19
|
-
"
|
|
20
|
-
|
|
29
|
+
"captures": {
|
|
30
|
+
"1": {
|
|
31
|
+
"name": "storage.modifier.lean4"
|
|
32
|
+
},
|
|
33
|
+
"2": {
|
|
34
|
+
"name": "storage.modifier.lean4"
|
|
35
|
+
},
|
|
36
|
+
"3": {
|
|
37
|
+
"name": "storage.modifier.lean4"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"match": "(@)(?:(\\[[^]\\s]*])|\\[([^]\\s]*))"
|
|
21
41
|
},
|
|
22
42
|
{
|
|
23
|
-
"match": "\\b(?<!\\.)(
|
|
43
|
+
"match": "\\b(?<!\\.)(local|scoped|partial|unsafe|nonrec|public|private|protected|noncomputable|meta)(?!\\.)\\b",
|
|
24
44
|
"name": "storage.modifier.lean4"
|
|
25
45
|
},
|
|
26
46
|
{
|
|
27
|
-
"match": "\\b(sorry|admit
|
|
47
|
+
"match": "\\b(sorry|admit|#exit)\\b",
|
|
28
48
|
"name": "invalid.illegal.lean4"
|
|
29
49
|
},
|
|
30
50
|
{
|
|
31
|
-
"match": "#(print|eval
|
|
51
|
+
"match": "#(print|eval!??|reduce|synth|widget|where|version|with_exporting|check|check_tactic|check_tactic_failure|check_failure|check_simp|discr_tree_key|discr_tree_simp_key|guard|guard_expr|guard_msgs)\\b",
|
|
32
52
|
"name": "keyword.other.lean4"
|
|
33
53
|
},
|
|
34
54
|
{
|
|
@@ -36,7 +56,7 @@
|
|
|
36
56
|
"name": "keyword.other.command.lean4"
|
|
37
57
|
},
|
|
38
58
|
{
|
|
39
|
-
"begin": "\\b(?<!\\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class
|
|
59
|
+
"begin": "\\b(?<!\\.)(inductive|coinductive|structure|theorem|axiom|abbrev|lemma|def|instance|class)\\b\\s+(\\{[^}]*})?",
|
|
40
60
|
"beginCaptures": {
|
|
41
61
|
"1": {
|
|
42
62
|
"name": "keyword.other.definitioncommand.lean4"
|
|
@@ -57,7 +77,7 @@
|
|
|
57
77
|
]
|
|
58
78
|
},
|
|
59
79
|
{
|
|
60
|
-
"match": "\\b(?<!\\.)(theorem|show|have|from|suffices|nomatch|def|class|structure|instance|set_option|initialize|builtin_initialize|example|inductive|coinductive|axiom|
|
|
80
|
+
"match": "\\b(?<!\\.)(theorem|show|have|using|haveI|from|suffices|nomatch|nofun|no_index|def|class|structure|instance|elab|set_option|initialize|builtin_initialize|example|inductive_fixpoint|inductive|coinductive_fixpoint|coinductive|termination_by\\??|decreasing_by|partial_fixpoint|axiom|universe|variable|module|import all|import|open|export|prelude|renaming|hiding|do|by\\??|letI??|let_expr|extends|mutual|mut|where|rec|declare_syntax_cat|syntax|macro_rules|macro|binop_lazy%|binop%|unop%|binrel_no_prop%|binrel%|leftact%|rightact%|max_prec|leading_parser|elab_rules|deriving|fun|section|namespace|end|prefix|postfix|infixl|infixr?|notation|abbrev|if|bif|then|else|calc|matches|match_expr|match|with|forall|for|while|repeat|unless|until|panic!|unreachable!|assert!|try|catch|finally|return|continue|break|exists|mod_cast|exact\\?%|include_str|include|in|trailing_parser|tactic_tag|tactic_alt|tactic_extension|register_tactic_tag|type_of%|binder_predicate|grind_propagator|builtin_grind_propagator|grind_pattern|simproc|builtin_simproc|simproc_pattern%|builtin_simproc_pattern%|simproc_decl|builtin_simproc_decl|dsimproc|builtin_dsimproc|dsimproc_decl|builtin_dsimproc_decl|show_panel_widgets|show_term|seal|unseal|nat_lit|norm_cast_add_elim|println!|private_decl%|declare_config_elab|decl_name%|register_error_explanation|register_builtin_option|register_option|register_parser_alias|register_simp_attr|register_linter_set|register_label_attr|recommended_spelling|reportIssue!|reprove|run_elab|run_cmd|run_meta|value_of%|add_decl_doc|omit|opaque|json%|dbg_trace|trace_goal\\[[^]\\s]*]|trace\\[[^]\\s]*]|throwErrorAt|throwError|throwNamedErrorAt|throwNamedError|logNamedWarningAt|logNamedWarning|logNamedErrorAt|logNamedError)(?!\\.)\\b",
|
|
61
81
|
"name": "keyword.other.lean4"
|
|
62
82
|
},
|
|
63
83
|
{
|
|
@@ -66,7 +86,7 @@
|
|
|
66
86
|
"end": "»"
|
|
67
87
|
},
|
|
68
88
|
{
|
|
69
|
-
"begin": "(s
|
|
89
|
+
"begin": "(s!|m!|throwError|dbg_trace|panic!|reportIssue!|trace(?:_goal|)\\[[^]\\s]*])\\s*\"",
|
|
70
90
|
"beginCaptures": {
|
|
71
91
|
"1": {
|
|
72
92
|
"name": "keyword.other.lean4"
|
|
@@ -132,7 +152,7 @@
|
|
|
132
152
|
"name": "constant.language.lean4"
|
|
133
153
|
},
|
|
134
154
|
{
|
|
135
|
-
"match": "'[^'\\\\]'",
|
|
155
|
+
"match": "(?<![]\\w])'[^'\\\\]'",
|
|
136
156
|
"name": "string.quoted.single.lean4"
|
|
137
157
|
},
|
|
138
158
|
{
|
|
@@ -141,7 +161,7 @@
|
|
|
141
161
|
"name": "constant.character.escape.lean4"
|
|
142
162
|
}
|
|
143
163
|
},
|
|
144
|
-
"match": "'(\\\\(x\\h\\h|u\\h\\h\\h\\h|.))'",
|
|
164
|
+
"match": "\\b(?<![]\\w])'(\\\\(x\\h\\h|u\\h\\h\\h\\h|.))'\\b",
|
|
145
165
|
"name": "string.quoted.single.lean4"
|
|
146
166
|
},
|
|
147
167
|
{
|
package/index.js
CHANGED
|
@@ -2206,22 +2206,22 @@ export const grammars = [
|
|
|
2206
2206
|
aliases: [
|
|
2207
2207
|
'lean4',
|
|
2208
2208
|
],
|
|
2209
|
-
byteSize:
|
|
2209
|
+
byteSize: 5553,
|
|
2210
2210
|
categories: [
|
|
2211
2211
|
'general',
|
|
2212
2212
|
],
|
|
2213
2213
|
displayName: 'Lean 4',
|
|
2214
2214
|
funding: [
|
|
2215
2215
|
],
|
|
2216
|
-
hash: '
|
|
2217
|
-
lastUpdate: '2025-
|
|
2216
|
+
hash: 'x_uK2VvS2wLZ-tUKA_og94H7uJQA793WTVzZNLPNWEo',
|
|
2217
|
+
lastUpdate: '2025-10-20T08:26:50Z',
|
|
2218
2218
|
license: 'Apache-2.0',
|
|
2219
2219
|
licenseUrl: 'https://raw.githubusercontent.com/leanprover/vscode-lean4/master/LICENSE',
|
|
2220
2220
|
name: 'lean',
|
|
2221
2221
|
scopeName: 'source.lean4',
|
|
2222
|
-
sha: '
|
|
2223
|
-
source: 'https://github.com/leanprover/vscode-lean4/blob/
|
|
2224
|
-
sourceApi: 'https://api.github.com/repos/leanprover/vscode-lean4/contents/vscode-lean4/syntaxes/lean4.json?ref=
|
|
2222
|
+
sha: '7071db855efdc3286a22376704b2279633cba614',
|
|
2223
|
+
source: 'https://github.com/leanprover/vscode-lean4/blob/7071db855efdc3286a22376704b2279633cba614/vscode-lean4/syntaxes/lean4.json',
|
|
2224
|
+
sourceApi: 'https://api.github.com/repos/leanprover/vscode-lean4/contents/vscode-lean4/syntaxes/lean4.json?ref=7071db855efdc3286a22376704b2279633cba614',
|
|
2225
2225
|
},
|
|
2226
2226
|
{
|
|
2227
2227
|
byteSize: 94797,
|