tm-grammars 1.24.23 → 1.24.25

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
@@ -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/b8fc2226dc1b76c29ddb63829a4d6adadadec9cd/vscode-lean4/syntaxes/lean4.json) | [Apache-2.0](https://raw.githubusercontent.com/leanprover/vscode-lean4/master/LICENSE) | | | 3.72 kB |
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 |
@@ -210,7 +210,7 @@ import { grammars } from 'tm-grammars'
210
210
  | `tcl` | | [sleutho/tcl](https://github.com/sleutho/tcl/blob/f18820ad14678bc033f0a35524820c90fe50f18b/syntaxes/tcl.tmLanguage) | | | | 4.12 kB |
211
211
  | `templ` | | [templ-go/templ-vscode](https://github.com/templ-go/templ-vscode/blob/d0af70c97ed384e93892c46b93d622ffaba5d93c/syntaxes/templ.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/templ-go/templ-vscode/main/LICENSE) | | `go` `javascript` `css` | 23.04 kB |
212
212
  | `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/cc2b4d4fe389f14b8a13937f4e0d7b2811b57588/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | | 10.79 kB |
213
- | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/f8bb386a48f799f890d00f217a90f615c9b3866c/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `r` | 8.99 kB |
213
+ | `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/0af4f80b051adfb7a46f3bb9499bcc1aa4ba0665/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `r` | 9.10 kB |
214
214
  | `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | | 5.98 kB |
215
215
  | `ts-tags` | `lit` | - | | | `typescript` `es-tag-css` `es-tag-glsl` `es-tag-html` `es-tag-sql` `es-tag-xml` | 121.00 B |
216
216
  | `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | | 633.00 B |
@@ -12,23 +12,43 @@
12
12
  "name": "storage.type.lean4"
13
13
  },
14
14
  {
15
- "match": "\\battribute\\b\\s*\\[[^]]*]",
16
- "name": "storage.modifier.lean4"
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
- "match": "@\\[[^]]*]",
20
- "name": "storage.modifier.lean4"
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(?<!\\.)(global|local|scoped|partial|unsafe|private|protected|noncomputable)(?!\\.)\\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|stop)\\b",
47
+ "match": "\\b(sorry|admit|#exit)\\b",
28
48
  "name": "invalid.illegal.lean4"
29
49
  },
30
50
  {
31
- "match": "#(print|eval|reduce|check|check_failure)\\b",
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|constant)\\b\\s+(\\{[^}]*})?",
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|constant|universes??|variables??|import|open|export|theory|prelude|renaming|hiding|exposing|do|by|let|extends|mutual|mut|where|rec|syntax|macro_rules|macro|deriving|fun|section|namespace|end|infixl??|infixr|postfix|prefix|notation|abbrev|if|then|else|calc|match|with|for|in|unless|try|catch|finally|return|continue|break)(?!\\.)\\b",
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/grammars/tex.json CHANGED
@@ -25,6 +25,9 @@
25
25
  "match": "\\\\\\\\",
26
26
  "name": "keyword.control.newline.tex"
27
27
  },
28
+ {
29
+ "include": "#ifnextchar"
30
+ },
28
31
  {
29
32
  "include": "#macro-general"
30
33
  }
@@ -170,6 +173,10 @@
170
173
  }
171
174
  ]
172
175
  },
176
+ "ifnextchar": {
177
+ "match": "\\\\@ifnextchar[(\\[{]",
178
+ "name": "keyword.control.ifnextchar.tex"
179
+ },
173
180
  "macro-control": {
174
181
  "captures": {
175
182
  "1": {
package/index.js CHANGED
@@ -2206,22 +2206,22 @@ export const grammars = [
2206
2206
  aliases: [
2207
2207
  'lean4',
2208
2208
  ],
2209
- byteSize: 3812,
2209
+ byteSize: 5553,
2210
2210
  categories: [
2211
2211
  'general',
2212
2212
  ],
2213
2213
  displayName: 'Lean 4',
2214
2214
  funding: [
2215
2215
  ],
2216
- hash: 'SnWD9GhPJlnzbk6TOGpTaOOff3GusHGksvA8Ix6BKhg',
2217
- lastUpdate: '2025-06-09T10:00:33Z',
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: 'b8fc2226dc1b76c29ddb63829a4d6adadadec9cd',
2223
- source: 'https://github.com/leanprover/vscode-lean4/blob/b8fc2226dc1b76c29ddb63829a4d6adadadec9cd/vscode-lean4/syntaxes/lean4.json',
2224
- sourceApi: 'https://api.github.com/repos/leanprover/vscode-lean4/contents/vscode-lean4/syntaxes/lean4.json?ref=b8fc2226dc1b76c29ddb63829a4d6adadadec9cd',
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,
@@ -3972,7 +3972,7 @@ export const grammars = [
3972
3972
  sourceApi: 'https://api.github.com/repos/hashicorp/syntax/contents/syntaxes/terraform.tmGrammar.json?ref=cc2b4d4fe389f14b8a13937f4e0d7b2811b57588',
3973
3973
  },
3974
3974
  {
3975
- byteSize: 9207,
3975
+ byteSize: 9321,
3976
3976
  categories: [
3977
3977
  'markup',
3978
3978
  ],
@@ -3982,15 +3982,15 @@ export const grammars = [
3982
3982
  ],
3983
3983
  funding: [
3984
3984
  ],
3985
- hash: 'tWgGhkkaucczpz1PGBzsxX5y8hKhohRETirKICYFphY',
3986
- lastUpdate: '2025-07-08T10:59:18Z',
3985
+ hash: 'xtlPQvRkrCu-WJs-6-GnsVs2lTmEb5DuKe4uCxoM6Y8',
3986
+ lastUpdate: '2025-10-21T08:46:46Z',
3987
3987
  license: 'MIT',
3988
3988
  licenseUrl: 'https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt',
3989
3989
  name: 'tex',
3990
3990
  scopeName: 'text.tex',
3991
- sha: 'f8bb386a48f799f890d00f217a90f615c9b3866c',
3992
- source: 'https://github.com/microsoft/vscode/blob/f8bb386a48f799f890d00f217a90f615c9b3866c/extensions/latex/syntaxes/TeX.tmLanguage.json',
3993
- sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/latex/syntaxes/TeX.tmLanguage.json?ref=f8bb386a48f799f890d00f217a90f615c9b3866c',
3991
+ sha: '0af4f80b051adfb7a46f3bb9499bcc1aa4ba0665',
3992
+ source: 'https://github.com/microsoft/vscode/blob/0af4f80b051adfb7a46f3bb9499bcc1aa4ba0665/extensions/latex/syntaxes/TeX.tmLanguage.json',
3993
+ sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/latex/syntaxes/TeX.tmLanguage.json?ref=0af4f80b051adfb7a46f3bb9499bcc1aa4ba0665',
3994
3994
  },
3995
3995
  {
3996
3996
  byteSize: 6126,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.24.23",
4
+ "version": "1.24.25",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",