tm-grammars 1.17.1 → 1.17.2

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 |
@@ -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
  ]
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: [
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.2",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",