Skip to content

Commit 83c921d

Browse files
Update grammars and themes
1 parent eeae4d7 commit 83c921d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+59069
-139
lines changed

meta/update-grammars-and-themes.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
import { pascalCase } from "change-case";
2-
import { grammars } from "tm-grammars";
2+
import { grammars as tmGrammars } from "tm-grammars";
33
import { themes } from "tm-themes";
44
import fs from 'node:fs'
55
import { basePath } from './utils.js'
66

77
console.log("Updating grammars...");
88

9+
const grammars = [
10+
...tmGrammars,
11+
{
12+
name: "MAML",
13+
scopeName: "source.maml",
14+
}
15+
]
16+
917
const cases = {}
1018
const aliases = {}
1119
const scopeNames = {}
@@ -21,7 +29,7 @@ grammars.forEach(grammar => {
2129
console.warn(`Skipping grammar ${grammar.name} as it is in the exclusions list.`);
2230
return;
2331
}
24-
32+
2533
cases[pascalCase(grammar.name)] = grammar.name;
2634
aliases[pascalCase(grammar.name)] = grammar.aliases ?? [];
2735
scopeNames[pascalCase(grammar.name)] = grammar.scopeName;

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/grammars/maml.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"displayName":"MAML","name":"maml","patterns":[{"include":"#value"}],"repository":{"comments":{"begin":"(#)","beginCaptures":{"1":{"name":"punctuation.definition.comment.maml"}},"end":"$|(?=#)","name":"punctuation.definition.comment.maml"},"array":{"begin":"\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.maml"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.maml"}},"name":"meta.structure.array.maml","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.maml"},{"match":"[^]\\s]","name":"invalid.illegal.expected-array-separator.maml"}]},"object":{"begin":"\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.maml"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.maml"}},"name":"meta.structure.dictionary.maml","patterns":[{"include":"#comments"},{"include":"#key"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.maml"}},"end":"(,)|(?=\n)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.maml"}},"name":"meta.structure.dictionary.value.maml","patterns":[{"include":"#value"},{"match":"[^,\\s]","name":"invalid.illegal.expected-dictionary-separator.maml"}]},{"match":"[^}\\s]","name":"invalid.illegal.expected-dictionary-separator.maml"}]},"key":{"name":"string.key.maml","patterns":[{"include":"#string"},{"match":"[A-Za-z0-9_-]","name":"variable.other.key.maml"}]},"string":{"begin":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.maml"}},"end":"\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.maml"}},"name":"string.quoted.double.maml","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\(?:[\"/\\\\nrt]|u\\{\\h{1,6}\\})","name":"constant.character.escape.maml"},{"match":"\\\\.","name":"invalid.illegal.unrecognized-string-escape.maml"}]},"rawstring":{"begin":"\"\"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.maml"}},"end":"\"{3,5}","endCaptures":{"0":{"name":"punctuation.definition.string.end.maml"}},"name":"string.quoted.triple.string.maml"},"constant":{"match":"\\b(?:true|false|null)\\b","name":"constant.language.maml"},"number":{"match":"-?(?:0|[1-9]\\d*)(?:(?:\\.\\d+)?(?:[Ee][-+]?\\d+)?)?","name":"constant.numeric.maml"},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#rawstring"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.maml"}

0 commit comments

Comments
 (0)