@malloydata/syntax-highlight 0.0.408 → 0.0.410

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.
@@ -287,7 +287,7 @@ export const monarch: Monaco.IMonarchLanguage = {
287
287
  'constant.numeric.date',
288
288
  ],
289
289
  ],
290
- identifiers_quoted: [[/`[^`]*`/, 'variable.other.quoted']],
290
+ identifiers_quoted: [[/`[^`]*`/, 'variable.other.quoted.malloy']],
291
291
  types: [
292
292
  [
293
293
  /\b(boolean|date|json|number|string|timestamp|timestamptz)\b/,
@@ -173,7 +173,7 @@
173
173
  "patterns": [
174
174
  {
175
175
  "match": "`[^`]*`",
176
- "name": "variable.other.quoted"
176
+ "name": "variable.other.quoted.malloy"
177
177
  }
178
178
  ]
179
179
  },
@@ -245,7 +245,7 @@
245
245
  ]
246
246
  },
247
247
  "tags": {
248
- "comment": "Malloy annotations are ROUTED (annotation-prefix.ts parsePrefix; docs.malloydata.dev/documentation/language/tags). The sigil is ##? then an optional block '|'; the route follows it (up to first whitespace) and decides how the content reads. Tag routes — empty (MOTLY) and the claimed sigils ! @ : — carry tag property-language → tag styling. The documentation route (\") and app-defined bracketed routes ( () <> [] {} ) carry prose/markdown/JSON → documentation styling. Routes apply identically to single-line (#/##) and block (#|/##|) forms. The doc-route fragment is repeated per rule because TextMate has no regex variables; (?!docroute) on the tag rules both implements the split and keeps the prefix-sharing begin scanner from dropping the shorter tag begins. v1: bare tag values share the tag-name scope; tag-route block bodies get tag-content treatment.",
248
+ "comment": "Malloy annotations are ROUTED (annotation-prefix.ts parsePrefix; docs.malloydata.dev/documentation/language/tags). The sigil is ##? then an optional block '|'; the route follows it (up to first whitespace) and decides how the content reads. Tag routes — empty (MOTLY) and the claimed sigils ! @ : — carry tag property-language → tag styling. The documentation route (\") and app-defined bracketed routes ( () <> [] {} ) carry prose/markdown/JSON → documentation styling. Routes apply identically to single-line (#/##) and block (#|/##|) forms. The doc-route fragment is repeated per rule because TextMate has no regex variables; (?!docroute) on the tag rules both implements the split and keeps the prefix-sharing begin scanner from dropping the shorter tag begins. Tag-route bodies (line and block alike) embed source.motly — the MOTLY tag-property language (@malloydata/motly-ts-parser) so keys, values, references, @-literals, arrays, and nested blocks highlight as MOTLY.",
249
249
  "patterns": [
250
250
  {
251
251
  "begin": "^([ \\t]*)(##\\|(?:\"|\\([^\\s)]*\\)|<[^\\s>]*>|\\[[^\\s\\]]*\\]|\\{[^\\s}]*\\}))",
@@ -278,7 +278,7 @@
278
278
  "name": "meta.annotation.block.malloy",
279
279
  "patterns": [
280
280
  {
281
- "include": "#tag-content"
281
+ "include": "source.motly"
282
282
  }
283
283
  ]
284
284
  },
@@ -313,7 +313,7 @@
313
313
  "name": "meta.annotation.block.malloy",
314
314
  "patterns": [
315
315
  {
316
- "include": "#tag-content"
316
+ "include": "source.motly"
317
317
  }
318
318
  ]
319
319
  },
@@ -338,37 +338,11 @@
338
338
  "name": "meta.annotation.line.malloy",
339
339
  "patterns": [
340
340
  {
341
- "include": "#tag-content"
341
+ "include": "source.motly"
342
342
  }
343
343
  ]
344
344
  }
345
- ],
346
- "repository": {
347
- "tag-content": {
348
- "patterns": [
349
- {
350
- "match": "\"[^\"#]*\"",
351
- "name": "string.quoted.double.malloy"
352
- },
353
- {
354
- "match": "=",
355
- "name": "keyword.operator.assignment.malloy"
356
- },
357
- {
358
- "match": "-(?=[A-Za-z_])",
359
- "name": "keyword.operator.negation.malloy"
360
- },
361
- {
362
- "match": "[0-9][A-Za-z_0-9.]*",
363
- "name": "constant.numeric.malloy"
364
- },
365
- {
366
- "match": "[A-Za-z_][A-Za-z_0-9.]*",
367
- "name": "entity.name.tag.malloy"
368
- }
369
- ]
370
- }
371
- }
345
+ ]
372
346
  },
373
347
  "strings": {
374
348
  "comment": "Order matters: f-/s-/r- prefixed forms begin one char earlier than a bare quote so they win by start position; among same-start ties the triple forms are listed before the single/double forms. Filter (f...) and raw (s...) bodies are opaque in v1 — no inner patterns. The bare triple string has NO interpolation pattern, so %{ } inside it stays plain string text (interpolation is only legal inside .sql(), handled by #sql-string).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/syntax-highlight",
3
- "version": "0.0.408",
3
+ "version": "0.0.410",
4
4
  "description": "A package to simplify the process of developing, testing, and syncnig Malloy syntax highlighting grammars",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
+ "@malloydata/motly-ts-parser": "^0.9.0",
30
31
  "@types/jasmine": "^4.3.5",
31
32
  "http-server": "^14.1.1",
32
33
  "jasmine-core": "^5.1.1",