tm-grammars 1.5.1 → 1.5.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
@@ -31,7 +31,7 @@ import { grammars } from 'tm-grammars'
31
31
  | `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | 28.73 kB |
32
32
  | `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | 6.82 kB |
33
33
  | `asm` | | [13xforever/x86_64-assembly-vscode](https://github.com/13xforever/x86_64-assembly-vscode/blob/15c07b12741ac75f5bb6e7701dc7c0d742add8dd/syntaxes/language-x86_64-assembly.tmLanguage) | [MIT](https://raw.githubusercontent.com/13xforever/x86_64-assembly-vscode/master/LICENSE.txt) | | 38.59 kB |
34
- | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/db49ff7cbeb2910ddac6ce0b15f3973b72827ccd/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 22.88 kB |
34
+ | `astro` | | [withastro/language-tools](https://github.com/withastro/language-tools/blob/cc0c86b73642c44f6df0fa5b1f5251bd224d5124/packages/vscode/syntaxes/astro.tmLanguage.src.yaml) | [MIT](https://raw.githubusercontent.com/withastro/language-tools/main/LICENSE) | `json` `javascript` `typescript` `stylus` `sass` `css` `scss` `less` `postcss` `tsx` | 22.92 kB |
35
35
  | `awk` | | [luggage66/vscode-awk](https://github.com/luggage66/vscode-awk/blob/eff8c0f160ae16592c8d9963fd77046137fd2612/syntaxes/awk.tmLanguage) | [MIT](https://raw.githubusercontent.com/luggage66/vscode-awk/master/LICENSE.txt) | | 5.18 kB |
36
36
  | `ballerina` | | [ballerina-platform/ballerina-grammar](https://github.com/ballerina-platform/ballerina-grammar/blob/42ddcc1c63c86bdd6ba712e86bf965f5063831d3/syntaxes/ballerina.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/ballerina-platform/ballerina-grammar/master/LICENSE) | | 56.58 kB |
37
37
  | `bat` | `batch` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/df15c8e832a341633acd2e9bb26e1b275d09cfe0/extensions/bat/syntaxes/batchfile.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 12.38 kB |
@@ -75,9 +75,9 @@ import { grammars } from 'tm-grammars'
75
75
  | `gherkin` | | [alexkrechik/VSCucumberAutoComplete](https://github.com/alexkrechik/VSCucumberAutoComplete/blob/fc8da969b1c83e13ef5124b1ec90ba5211bc1e5f/gclient/syntaxes/feature.tmLanguage) | [MIT](https://raw.githubusercontent.com/alexkrechik/VSCucumberAutoComplete/master/LICENSE) | | 12.13 kB |
76
76
  | `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 |
77
77
  | `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 |
78
- | `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/b81cf9a415d6e7b5a3d5ba3ac2cead313c1e53e9/syntaxes/gleam.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt) | | 3.80 kB |
79
- | `glimmer-js` | `gjs` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/312fb20cc04374eb8768369ebccabd12143edbe4/syntaxes/source.gjs.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `javascript` `typescript` `css` `html` | 19.08 kB |
80
- | `glimmer-ts` | `gts` | [lifeart/vsc-ember-syntax](https://github.com/lifeart/vsc-ember-syntax/blob/312fb20cc04374eb8768369ebccabd12143edbe4/syntaxes/source.gts.json) | [MIT](https://raw.githubusercontent.com/lifeart/vsc-ember-syntax/master/LICENSE) | `typescript` `css` `javascript` `html` | 19.08 kB |
78
+ | `gleam` | | [gleam-lang/vscode-gleam](https://github.com/gleam-lang/vscode-gleam/blob/755b168864d3ae92bab27cbfd80788ec021a36e7/syntaxes/gleam.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/gleam-lang/vscode-gleam/main/LICENSE.txt) | | 2.39 kB |
79
+ | `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 |
80
+ | `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 |
81
81
  | `glsl` | | [polym0rph/GLSL.tmbundle](https://github.com/polym0rph/GLSL.tmbundle/blob/6998d3bbd204e26746a5ca580cda4c650b9057b1/Syntaxes/GLSL.tmLanguage) | | `c` | 3.69 kB |
82
82
  | `gnuplot` | | [MarioSchwalbe/vscode-gnuplot](https://github.com/MarioSchwalbe/vscode-gnuplot/blob/c62c1a61c9b6b4658b43d76c397dc2ad43523b6a/syntaxes/gnuplot.tmLanguage) | [GPL-3.0](https://raw.githubusercontent.com/MarioSchwalbe/vscode-gnuplot/master/LICENSE) | | 16.46 kB |
83
83
  | `go` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/e9a8b6add5329f8124f23ff7143d95c22ce39f76/extensions/go/syntaxes/go.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 43.26 kB |
@@ -162,7 +162,7 @@ import { grammars } from 'tm-grammars'
162
162
  | `scheme` | | [sjhuangx/vscode-scheme](https://github.com/sjhuangx/vscode-scheme/blob/4e21683666e1e2edfa21d040ecd427f628e7b5ff/syntaxes/scheme.tmLanguage) | [MIT](https://raw.githubusercontent.com/sjhuangx/vscode-scheme/master/LICENSE.md) | | 8.35 kB |
163
163
  | `scss` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/cf8d61ebd2f022f4ce8280171f0360d1fe0a206d/extensions/scss/syntaxes/scss.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `css` | 26.21 kB |
164
164
  | `shaderlab` | `shader` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/8fdf170a0850c1cc027382f31650aaf300d3ae2a/extensions/shaderlab/syntaxes/shaderlab.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `hlsl` | 5.83 kB |
165
- | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/a16d8d0a3e2062678c599134e78f8aa7b124363b/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 32.85 kB |
165
+ | `shellscript` | `bash` `sh` `shell` `zsh` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6285faddc6bbce7e605c04f8ab4364fdc6aa2f04/extensions/shellscript/syntaxes/shell-unix-bash.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 38.67 kB |
166
166
  | `shellsession` | `console` | [hronro/sublime-linguist-syntax](https://github.com/hronro/sublime-linguist-syntax/blob/9c84f1d69dbe89bc23292f129cf2d408a9c7afe1/syntaxes/ShellSession.tmLanguage) | [MIT](https://raw.githubusercontent.com/hronro/sublime-linguist-syntax/master/LICENSE) | `shellscript` | 567.00 B |
167
167
  | `smalltalk` | | [leocamello/vscode-smalltalk](https://github.com/leocamello/vscode-smalltalk/blob/bc888519a21740b4dbd4edcf2f884c61855dc58b/syntaxes/smalltalk.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/leocamello/vscode-smalltalk/master/LICENSE) | | 3.91 kB |
168
168
  | `solidity` | | [juanfranblanco/vscode-solidity](https://github.com/juanfranblanco/vscode-solidity/blob/75531be0beda99b7293d778eb0b1c63f70d8ac59/syntaxes/solidity.json) | [MIT](https://raw.githubusercontent.com/juanfranblanco/vscode-solidity/master/License.txt) | | 15.15 kB |
@@ -177,6 +177,9 @@
177
177
  },
178
178
  {
179
179
  "include": "#frontmatter"
180
+ },
181
+ {
182
+ "include": "#text"
180
183
  }
181
184
  ],
182
185
  "repository": {
@@ -558,16 +561,6 @@
558
561
  },
559
562
  {
560
563
  "include": "#entities"
561
- },
562
- {
563
- "begin": "(?<=^|>|})",
564
- "end": "(?=<|{|$)",
565
- "name": "text.astro",
566
- "patterns": [
567
- {
568
- "include": "#entities"
569
- }
570
- ]
571
564
  }
572
565
  ]
573
566
  },
@@ -825,6 +818,20 @@
825
818
  "include": "#attributes"
826
819
  }
827
820
  ]
821
+ },
822
+ "text": {
823
+ "patterns": [
824
+ {
825
+ "begin": "(?<=^|---|>|})",
826
+ "end": "(?=<|{|$)",
827
+ "name": "text.astro",
828
+ "patterns": [
829
+ {
830
+ "include": "#entities"
831
+ }
832
+ ]
833
+ }
834
+ ]
828
835
  }
829
836
  },
830
837
  "scopeName": "source.astro"
@@ -1,8 +1,6 @@
1
1
  {
2
2
  "displayName": "Gleam",
3
- "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
4
3
  "name": "gleam",
5
- "fileTypes": ["gleam"],
6
4
  "patterns": [
7
5
  {
8
6
  "include": "#comments"
@@ -21,74 +19,23 @@
21
19
  }
22
20
  ],
23
21
  "repository": {
24
- "keywords": {
22
+ "binary_number": {
23
+ "match": "\\b0b[0-1]+\\b",
24
+ "name": "constant.numeric.binary.gleam",
25
25
  "patterns": [
26
- {
27
- "name": "keyword.control.gleam",
28
- "match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic)\\b"
29
- },
30
- {
31
- "name": "keyword.operator.arrow.gleam",
32
- "match": "(<\\-|\\->)"
33
- },
34
- {
35
- "name": "keyword.operator.pipe.gleam",
36
- "match": "\\|>"
37
- },
38
- {
39
- "name": "keyword.operator.splat.gleam",
40
- "match": "\\.\\."
41
- },
42
- {
43
- "name": "keyword.operator.comparison.float.gleam",
44
- "match": "(<=\\.|>=\\.|==\\.|!=\\.|<\\.|>\\.)"
45
- },
46
- {
47
- "name": "keyword.operator.comparison.int.gleam",
48
- "match": "(<=|>=|==|!=|<|>)"
49
- },
50
- {
51
- "name": "keyword.operator.logical.gleam",
52
- "match": "(&&|\\|\\|)"
53
- },
54
- {
55
- "name": "keyword.operator.string.gleam",
56
- "match": "<>"
57
- },
58
- {
59
- "name": "keyword.operator.other.gleam",
60
- "match": "\\|"
61
- },
62
- {
63
- "name": "keyword.operator.arithmetic.float.gleam",
64
- "match": "(\\+\\.|\\-\\.|/\\.|\\*\\.|%\\.)"
65
- },
66
- {
67
- "name": "keyword.operator.arithmetic.int.gleam",
68
- "match": "(\\+|\\-|/|\\*|%)"
69
- },
70
- {
71
- "name": "keyword.operator.assignment.gleam",
72
- "match": "="
73
- }
74
26
  ]
75
27
  },
76
- "strings": {
77
- "name": "string.quoted.double.gleam",
78
- "begin": "\"",
79
- "end": "\"",
28
+ "boolean": {
29
+ "match": "\\b(True|False)\\b",
30
+ "name": "constant.language.boolean.gleam",
80
31
  "patterns": [
81
- {
82
- "name": "constant.character.escape.gleam",
83
- "match": "\\\\."
84
- }
85
32
  ]
86
33
  },
87
34
  "comments": {
88
35
  "patterns": [
89
36
  {
90
- "name": "comment.line.gleam",
91
- "match": "//.*"
37
+ "match": "//.*",
38
+ "name": "comment.line.gleam"
92
39
  }
93
40
  ]
94
41
  },
@@ -110,59 +57,115 @@
110
57
  "include": "#boolean"
111
58
  },
112
59
  {
113
- "name": "entity.name.type.gleam",
114
- "match": "[[:upper:]][[:word:]]*"
60
+ "match": "[[:upper:]][[:word:]]*",
61
+ "name": "entity.name.type.gleam"
115
62
  }
116
63
  ]
117
64
  },
118
- "binary_number": {
119
- "name": "constant.numeric.binary.gleam",
120
- "match": "\\b0b[0-1]+\\b",
121
- "patterns": []
122
- },
123
- "octal_number": {
124
- "name": "constant.numeric.octal.gleam",
125
- "match": "\\b0o[0-7]+\\b",
126
- "patterns": []
127
- },
128
65
  "decimal_number": {
66
+ "match": "\\b[[:digit:]]+(_?[[:digit:]])*(\\.[[:digit:]]*)?(e-?[[:digit:]]*)?\\b",
129
67
  "name": "constant.numeric.decimal.gleam",
130
- "match": "\\b[[:digit:]][[:digit:]_]*(\\.[[:digit:]]*)?\\b",
131
- "patterns": []
132
- },
133
- "hexadecimal_number": {
134
- "name": "constant.numeric.hexadecimal.gleam",
135
- "match": "\\b0x[[:xdigit:]]+\\b",
136
- "patterns": []
137
- },
138
- "boolean": {
139
- "name": "constant.language.boolean.gleam",
140
- "match": "\\b(True|False)\\b",
141
- "patterns": []
68
+ "patterns": [
69
+ ]
142
70
  },
143
71
  "entity": {
144
72
  "patterns": [
145
73
  {
146
74
  "begin": "\\b([[:lower:]][[:word:]]*)([[:space:]]*)?\\(",
75
+ "captures": {
76
+ "1": {
77
+ "name": "entity.name.function.gleam"
78
+ }
79
+ },
147
80
  "end": "\\)",
148
81
  "patterns": [
149
82
  {
150
83
  "include": "$self"
151
84
  }
152
- ],
153
- "captures": {
154
- "1": {
155
- "name": "entity.name.function.gleam"
156
- }
157
- }
85
+ ]
86
+ },
87
+ {
88
+ "match": "\\b([[:lower:]][[:word:]]*):\\s",
89
+ "name": "variable.parameter.gleam"
90
+ },
91
+ {
92
+ "match": "\\b([[:lower:]][[:word:]]*):",
93
+ "name": "entity.name.namespace.gleam"
94
+ }
95
+ ]
96
+ },
97
+ "hexadecimal_number": {
98
+ "match": "\\b0x[[:xdigit:]]+\\b",
99
+ "name": "constant.numeric.hexadecimal.gleam",
100
+ "patterns": [
101
+ ]
102
+ },
103
+ "keywords": {
104
+ "patterns": [
105
+ {
106
+ "match": "\\b(as|use|case|if|fn|import|let|assert|pub|type|opaque|const|todo|panic)\\b",
107
+ "name": "keyword.control.gleam"
108
+ },
109
+ {
110
+ "match": "(<\\-|\\->)",
111
+ "name": "keyword.operator.arrow.gleam"
112
+ },
113
+ {
114
+ "match": "\\|>",
115
+ "name": "keyword.operator.pipe.gleam"
116
+ },
117
+ {
118
+ "match": "\\.\\.",
119
+ "name": "keyword.operator.splat.gleam"
120
+ },
121
+ {
122
+ "match": "(<=\\.|>=\\.|==\\.|!=\\.|<\\.|>\\.)",
123
+ "name": "keyword.operator.comparison.float.gleam"
124
+ },
125
+ {
126
+ "match": "(<=|>=|==|!=|<|>)",
127
+ "name": "keyword.operator.comparison.int.gleam"
128
+ },
129
+ {
130
+ "match": "(&&|\\|\\|)",
131
+ "name": "keyword.operator.logical.gleam"
158
132
  },
159
133
  {
160
- "name": "variable.parameter.gleam",
161
- "match": "\\b([[:lower:]][[:word:]]*):\\s"
134
+ "match": "<>",
135
+ "name": "keyword.operator.string.gleam"
162
136
  },
163
137
  {
164
- "name": "entity.name.namespace.gleam",
165
- "match": "\\b([[:lower:]][[:word:]]*):"
138
+ "match": "\\|",
139
+ "name": "keyword.operator.other.gleam"
140
+ },
141
+ {
142
+ "match": "(\\+\\.|\\-\\.|/\\.|\\*\\.|%\\.)",
143
+ "name": "keyword.operator.arithmetic.float.gleam"
144
+ },
145
+ {
146
+ "match": "(\\+|\\-|/|\\*|%)",
147
+ "name": "keyword.operator.arithmetic.int.gleam"
148
+ },
149
+ {
150
+ "match": "=",
151
+ "name": "keyword.operator.assignment.gleam"
152
+ }
153
+ ]
154
+ },
155
+ "octal_number": {
156
+ "match": "\\b0o[0-7]+\\b",
157
+ "name": "constant.numeric.octal.gleam",
158
+ "patterns": [
159
+ ]
160
+ },
161
+ "strings": {
162
+ "begin": "\"",
163
+ "end": "\"",
164
+ "name": "string.quoted.double.gleam",
165
+ "patterns": [
166
+ {
167
+ "match": "\\\\.",
168
+ "name": "constant.character.escape.gleam"
166
169
  }
167
170
  ]
168
171
  }
@@ -12,10 +12,10 @@
12
12
  "name": "glimmer-js",
13
13
  "patterns": [
14
14
  {
15
- "include": "source.js"
15
+ "include": "#main"
16
16
  },
17
17
  {
18
- "include": "#main"
18
+ "include": "source.js"
19
19
  }
20
20
  ],
21
21
  "repository": {
@@ -12,10 +12,10 @@
12
12
  "name": "glimmer-ts",
13
13
  "patterns": [
14
14
  {
15
- "include": "source.ts"
15
+ "include": "#main"
16
16
  },
17
17
  {
18
- "include": "#main"
18
+ "include": "source.ts"
19
19
  }
20
20
  ],
21
21
  "repository": {