@malloydata/syntax-highlight 0.0.361 → 0.0.362

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.
@@ -94,6 +94,20 @@ export const monarch: Monaco.IMonarchLanguage = {
94
94
  [/[\n]/, 'comment.line.double.hyphen'],
95
95
  ],
96
96
  tags: [
97
+ [
98
+ /^([ \t]*)##\|/,
99
+ {
100
+ next: '@comment_line_double_slash_end',
101
+ token: 'support.type.property.name.json',
102
+ },
103
+ ],
104
+ [
105
+ /^([ \t]*)#\|/,
106
+ {
107
+ next: '@comment_line_double_slash_end',
108
+ token: 'support.type.property.name.json',
109
+ },
110
+ ],
97
111
  [/##\n/, 'string.quoted'],
98
112
  [/#"/, {next: '@comment_line_double_slash_end', token: 'comment.line'}],
99
113
  [/#\n/, 'string.quoted'],
@@ -161,6 +161,30 @@
161
161
  },
162
162
  "tags": {
163
163
  "patterns": [
164
+ {
165
+ "begin": "^([ \\t]*)##\\|",
166
+ "end": "^\\1\\|##",
167
+ "beginCaptures": {
168
+ "0": { "name": "support.type.property-name.json" }
169
+ },
170
+ "endCaptures": {
171
+ "0": { "name": "support.type.property-name.json" }
172
+ },
173
+ "name": "comment.line.double-slash",
174
+ "patterns": [{ "include": "#tag-values" }]
175
+ },
176
+ {
177
+ "begin": "^([ \\t]*)#\\|",
178
+ "end": "^\\1\\|#(?!#)",
179
+ "beginCaptures": {
180
+ "0": { "name": "support.type.property-name.json" }
181
+ },
182
+ "endCaptures": {
183
+ "0": { "name": "support.type.property-name.json" }
184
+ },
185
+ "name": "comment.line.double-slash",
186
+ "patterns": [{ "include": "#tag-values" }]
187
+ },
164
188
  {
165
189
  "match": "##\\n",
166
190
  "name": "string.quoted",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/syntax-highlight",
3
- "version": "0.0.361",
3
+ "version": "0.0.362",
4
4
  "description": "A package to simplify the process of developing, testing, and syncnig Malloy syntax highlighting grammars",
5
5
  "files": [
6
6
  "grammars/**/*.tmGrammar.json",
@@ -11,7 +11,8 @@
11
11
  "node": ">=20"
12
12
  },
13
13
  "scripts": {
14
- "build": "tsc",
14
+ "codegen": "node ../../scripts/femto-build.js monarch",
15
+ "build": "npm run codegen && tsc",
15
16
  "clean": "tsc --build --clean && rm -f tsconfig.tsbuildinfo && rm -rf dist",
16
17
  "gen-malloy-monarch": "ts-node scripts/generateMonarchGrammar grammars/malloy/malloy.tmGrammar.json grammars/malloy/malloy.monarch.ts && prettier grammars/malloy/malloy.monarch.ts --write",
17
18
  "gen-malloy-tokens": "ts-node scripts/generateLanguageTokenizationFile grammars/malloy/tokenizations/darkPlus.ts",