Skip to content

Commit

Permalink
🤖: update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Dec 21, 2023
1 parent 873221f commit 2c5342a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 13 additions & 1 deletion packages/shiki/languages/csharp.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,18 @@
"name": "storage.type.struct.cs",
"match": "\\bstruct\\b"
},
{
"name": "keyword.other.constraint.default.cs",
"match": "\\bdefault\\b"
},
{
"name": "keyword.other.constraint.notnull.cs",
"match": "\\bnotnull\\b"
},
{
"name": "keyword.other.constraint.unmanaged.cs",
"match": "\\bunmanaged\\b"
},
{
"match": "(new)\\s*(\\()\\s*(\\))",
"captures": {
Expand Down Expand Up @@ -2628,7 +2640,7 @@
},
"patterns": [
{
"begin": "\\G",
"begin": "(?=[^;\\)])",
"end": "(?=;|\\))",
"patterns": [
{
Expand Down
4 changes: 2 additions & 2 deletions packages/shiki/languages/vhdl.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@
"process_pattern": {
"patterns": [
{
"begin": "(?x)\n\t\t\t\t\t\t# From the beginning of the line\n\t\t\t\t\t\t^\\s*\n\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t# Optional identifier $2\n\t\t\t\t\t\t\t([a-zA-Z][a-zA-Z0-9_]*)\n\n\t\t\t\t\t\t\t# Colon $3\n\t\t\t\t\t\t\t\\s*(:)\\s*\n\t\t\t\t\t\t)?\n\n\t\t\t\t\t\t# The word process #4\n\t\t\t\t\t\t((?i:process\\b))\n\t\t\t\t\t",
"begin": "(?x)\n\t\t\t\t\t\t# From the beginning of the line\n\t\t\t\t\t\t^\\s*\n\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t# Optional identifier $2\n\t\t\t\t\t\t\t([a-zA-Z][a-zA-Z0-9_]*)\n\n\t\t\t\t\t\t\t# Colon $3\n\t\t\t\t\t\t\t\\s*(:)\\s*\n\t\t\t\t\t\t)?\n\n\t\t\t\t\t\t# The word process #4\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t(?:postponed\\s+)?\n\t\t\t\t\t\t\t(?i:process\\b)\n\t\t\t\t\t\t)\n\t\t\t\t\t",
"beginCaptures": {
"2": {
"name": "entity.name.section.process.begin.vhdl"
Expand All @@ -1182,7 +1182,7 @@
"name": "keyword.language.vhdl"
}
},
"end": "(?x)\n\t\t\t\t\t\t# The word end $1\n\t\t\t\t\t\t((?i:end))\n\n\t\t\t\t\t\t# Optional word process $3\n\t\t\t\t\t\t(\\s+((?i:process)))\n\n\t\t\t\t\t\t# Optional identifier $6 or invalid identifier $7\n\t\t\t\t\t\t(\\s+((\\2)|(.+?)))?\n\n\t\t\t\t\t\t(?=\\s*;)\n\t\t\t\t\t",
"end": "(?x)\n\t\t\t\t\t\t# The word end $1\n\t\t\t\t\t\t((?i:end))\n\n\t\t\t\t\t\t# Optional word process $3\n\t\t\t\t\t\t(\\s+(\n\t\t\t\t\t\t\t(?:postponed\\s+)?\n\t\t\t\t\t\t\t(?i:process)\n\t\t\t\t\t\t))\n\n\t\t\t\t\t\t# Optional identifier $6 or invalid identifier $7\n\t\t\t\t\t\t(\\s+((\\2)|(.+?)))?\n\n\t\t\t\t\t\t(?=\\s*;)\n\t\t\t\t\t",
"endCaptures": {
"1": {
"name": "keyword.language.vhdl"
Expand Down
1 change: 1 addition & 0 deletions packages/shiki/src/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ export const languages: ILanguageRegistration[] = [
scopeName: 'source.gts',
path: 'glimmer-ts.tmLanguage.json',
displayName: 'Glimmer TS',
samplePath: 'glimmer-ts.sample',
aliases: ['gts'],
embeddedLangs: ['typescript', 'handlebars']
},
Expand Down

0 comments on commit 2c5342a

Please sign in to comment.