tm-grammars 1.17.1 → 1.17.3

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
@@ -86,7 +86,7 @@ import { grammars } from 'tm-grammars'
86
86
  | `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fbb554addf81e8961b58b1577924af10fecf9694/syntaxes/feature.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
87
87
  | `git-commit` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/f8c3f89468fea14103d8790d59ea8594d6e644eb/extensions/git-base/syntaxes/git-commit.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `diff` | 1.36 kB |
88
88
  | `git-rebase` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e95c74c4c7af876e79ec58df262464467c06df28/extensions/git-base/syntaxes/git-rebase.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `shellscript` | 818.00 B |
89
- | `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/5898983fc1c012b4ee3dd0edf0abd69e531831d4/syntaxes/gleam.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt) | | 2.51 kB |
89
+ | `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/6ed1e8a5acb5c4dbe2d44fe7d01d835ddc09cc9e/syntaxes/gleam.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt) | | 2.47 kB |
90
90
  | `glimmer-js` | `gjs` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gjs.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `javascript` `typescript` `css` `html` | 19.08 kB |
91
91
  | `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/76fce7b360ce09a78789e7d5217b8955d1a5d95f/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
92
92
  | `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
@@ -139,7 +139,7 @@ import { grammars } from 'tm-grammars'
139
139
  | `mdx` | | [wooorm/markdown-tm-language](https://github.com/wooorm/markdown-tm-language/blob/3f11836d11ca5ed41431ecd53dca7710c2c823ce/source.mdx.tmLanguage) | [MIT](https://raw.githubusercontent.com/wooorm/markdown-tm-language/main/license) | `tsx` `toml` `yaml` `c` `clojure` `coffee` `cpp` `csharp` `css` `diff` `docker` `elixir` `elm` `erlang` `go` `graphql` `haskell` `html` `ini` `java` `javascript` `json` `julia` `kotlin` `less` `lua` `make` `markdown` `objective-c` `perl` `python` `r` `ruby` `rust` `scala` `scss` `shellscript` `shellsession` `sql` `xml` `swift` `typescript` | 129.74 kB |
140
140
  | `mermaid` | | [bpruitt-goddard/vscode-mermaid-syntax-highlight](https://github.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/blob/8b62f487cb7a89afcd152febfbf47f5d4787657f/syntaxes/mermaid.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/bpruitt-goddard/vscode-mermaid-syntax-highlight/master/LICENSE) | | 27.99 kB |
141
141
  | `mojo` | | [modularml/mojo-syntax](https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json) | [MIT](https://raw.githubusercontent.com/modularml/mojo-syntax/main/LICENSE) | | 72.91 kB |
142
- | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/1b57eb84b85cb21835f83a50f988091afa926fdf/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 18.98 kB |
142
+ | `move` | | [damirka/move-syntax](https://github.com/damirka/move-syntax/blob/ff3b79424638c8904787cd388b9823b546f5dd79/syntaxes/move.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE) | | 18.98 kB |
143
143
  | `narrat` | `nar` | [liana-p/narrat-syntax-highlighting-vscode](https://github.com/liana-p/narrat-syntax-highlighting-vscode/blob/00d4b410338fc50ca0ce77a1f7e873c1fb66d376/syntaxes/narrat.tmLanguage.yaml) | [MIT](https://raw.githubusercontent.com/liana-p/narrat-syntax-highlighting-vscode/main/LICENSE) | | 3.41 kB |
144
144
  | `nextflow` | `nf` | [nextflow-io/vscode-language-nextflow](https://github.com/nextflow-io/vscode-language-nextflow/blob/7eeb9be8d01556b7c51c59307275c2f720f2ddf4/syntaxes/nextflow.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nextflow-io/vscode-language-nextflow/master/LICENSE.md) | | 4.40 kB |
145
145
  | `nginx` | | [hangxingliu/vscode-nginx-conf-hint](https://github.com/hangxingliu/vscode-nginx-conf-hint/blob/49159c02fd09dce264ded7802c9499a0f09646f5/src/syntax/nginx.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/hangxingliu/vscode-nginx-conf-hint/main/LICENSE) | `lua` | 34.14 kB |
@@ -23,17 +23,11 @@
23
23
  ],
24
24
  "repository": {
25
25
  "binary_number": {
26
- "match": "\\b0[bB](_?[01])+\\b",
26
+ "match": "\\b0[bB]0*1[01_]*\\b",
27
27
  "name": "constant.numeric.binary.gleam",
28
28
  "patterns": [
29
29
  ]
30
30
  },
31
- "boolean": {
32
- "match": "\\b(True|False)\\b",
33
- "name": "constant.language.boolean.gleam",
34
- "patterns": [
35
- ]
36
- },
37
31
  "comments": {
38
32
  "patterns": [
39
33
  {
@@ -60,13 +54,13 @@
60
54
  "include": "#boolean"
61
55
  },
62
56
  {
63
- "match": "[[:upper:]][[:word:]]*",
57
+ "match": "[[:upper:]][[:alnum:]]*",
64
58
  "name": "entity.name.type.gleam"
65
59
  }
66
60
  ]
67
61
  },
68
62
  "decimal_number": {
69
- "match": "\\b[[:digit:]]+(_?[[:digit:]])*(\\.[[:digit:]]*)?(e-?[[:digit:]]*)?\\b",
63
+ "match": "\\b(0*[1-9][0-9_]*|0)(\\.(0*[1-9][0-9_]*|0)?(e-?0*[1-9][0-9]*)?)?\\b",
70
64
  "name": "constant.numeric.decimal.gleam",
71
65
  "patterns": [
72
66
  ]
@@ -78,7 +72,7 @@
78
72
  "entity": {
79
73
  "patterns": [
80
74
  {
81
- "begin": "\\b([[:lower:]][[:word:]]*)([[:space:]]*)?\\(",
75
+ "begin": "\\b([[:lower:]][[:word:]]*)\\b[[:space:]]*\\(",
82
76
  "captures": {
83
77
  "1": {
84
78
  "name": "entity.name.function.gleam"
@@ -102,7 +96,7 @@
102
96
  ]
103
97
  },
104
98
  "hexadecimal_number": {
105
- "match": "\\b0[xX](_?[[:xdigit:]])+\\b",
99
+ "match": "\\b0[xX]0*[1-9a-zA-Z][0-9a-zA-Z]*\\b",
106
100
  "name": "constant.numeric.hexadecimal.gleam",
107
101
  "patterns": [
108
102
  ]
@@ -110,7 +104,7 @@
110
104
  "keywords": {
111
105
  "patterns": [
112
106
  {
113
- "match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic)\\b",
107
+ "match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic|else|try)\\b",
114
108
  "name": "keyword.control.gleam"
115
109
  },
116
110
  {
@@ -126,11 +120,15 @@
126
120
  "name": "keyword.operator.splat.gleam"
127
121
  },
128
122
  {
129
- "match": "(<=\\.|>=\\.|==\\.|!=\\.|<\\.|>\\.)",
123
+ "match": "(==|!=)",
124
+ "name": "keyword.operator.comparison.gleam"
125
+ },
126
+ {
127
+ "match": "(<=\\.|>=\\.|<\\.|>\\.)",
130
128
  "name": "keyword.operator.comparison.float.gleam"
131
129
  },
132
130
  {
133
- "match": "(<=|>=|==|!=|<|>)",
131
+ "match": "(<=|>=|<|>)",
134
132
  "name": "keyword.operator.comparison.int.gleam"
135
133
  },
136
134
  {
@@ -146,7 +144,7 @@
146
144
  "name": "keyword.operator.other.gleam"
147
145
  },
148
146
  {
149
- "match": "(\\+\\.|\\-\\.|/\\.|\\*\\.|%\\.)",
147
+ "match": "(\\+\\.|\\-\\.|/\\.|\\*\\.)",
150
148
  "name": "keyword.operator.arithmetic.float.gleam"
151
149
  },
152
150
  {
@@ -160,7 +158,7 @@
160
158
  ]
161
159
  },
162
160
  "octal_number": {
163
- "match": "\\b0[oO](_?[0-7])+\\b",
161
+ "match": "\\b0[oO]0*[1-7][0-7]*\\b",
164
162
  "name": "constant.numeric.octal.gleam",
165
163
  "patterns": [
166
164
  ]
@@ -895,7 +895,7 @@
895
895
  "include": "#comments"
896
896
  },
897
897
  {
898
- "begin": "(?<=(module|spec))",
898
+ "begin": "(?<=\\b(module|spec)\\b)",
899
899
  "comment": "Module name",
900
900
  "end": "(?=[;{])",
901
901
  "patterns": [
package/index.js CHANGED
@@ -1014,15 +1014,15 @@ export const grammars = [
1014
1014
  source: 'https://github.com/microsoft/vscode/blob/e95c74c4c7af876e79ec58df262464467c06df28/extensions/git-base/syntaxes/git-rebase.tmLanguage.json',
1015
1015
  },
1016
1016
  {
1017
- byteSize: 2567,
1017
+ byteSize: 2530,
1018
1018
  displayName: 'Gleam',
1019
- lastUpdate: '2024-05-17T16:00:53Z',
1019
+ lastUpdate: '2024-08-01T12:26:07Z',
1020
1020
  license: 'Apache-2.0',
1021
1021
  licenseUrl: 'https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt',
1022
1022
  name: 'gleam',
1023
1023
  scopeName: 'source.gleam',
1024
- sha: '5898983fc1c012b4ee3dd0edf0abd69e531831d4',
1025
- source: 'https://github.com/gleam-lang/vscode-gleam/blob/5898983fc1c012b4ee3dd0edf0abd69e531831d4/syntaxes/gleam.tmLanguage.json',
1024
+ sha: '6ed1e8a5acb5c4dbe2d44fe7d01d835ddc09cc9e',
1025
+ source: 'https://github.com/gleam-lang/vscode-gleam/blob/6ed1e8a5acb5c4dbe2d44fe7d01d835ddc09cc9e/syntaxes/gleam.tmLanguage.json',
1026
1026
  },
1027
1027
  {
1028
1028
  aliases: [
@@ -1972,15 +1972,15 @@ export const grammars = [
1972
1972
  source: 'https://github.com/modularml/mojo-syntax/blob/46eccdaeda2b1587e9b82808cdb35670f359d16d/syntaxes/mojo.syntax.json',
1973
1973
  },
1974
1974
  {
1975
- byteSize: 19432,
1975
+ byteSize: 19438,
1976
1976
  displayName: 'Move',
1977
- lastUpdate: '2024-07-16T20:33:13Z',
1977
+ lastUpdate: '2024-08-20T09:34:05Z',
1978
1978
  license: 'MIT',
1979
1979
  licenseUrl: 'https://raw.githubusercontent.com/damirka/move-syntax/main/LICENSE',
1980
1980
  name: 'move',
1981
1981
  scopeName: 'source.move',
1982
- sha: '1b57eb84b85cb21835f83a50f988091afa926fdf',
1983
- source: 'https://github.com/damirka/move-syntax/blob/1b57eb84b85cb21835f83a50f988091afa926fdf/syntaxes/move.tmLanguage.json',
1982
+ sha: 'ff3b79424638c8904787cd388b9823b546f5dd79',
1983
+ source: 'https://github.com/damirka/move-syntax/blob/ff3b79424638c8904787cd388b9823b546f5dd79/syntaxes/move.tmLanguage.json',
1984
1984
  },
1985
1985
  {
1986
1986
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.17.1",
4
+ "version": "1.17.3",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",