Skip to content

Commit

Permalink
🤖: update grammars
Browse files Browse the repository at this point in the history
  • Loading branch information
octref committed Nov 1, 2024
1 parent 396ad41 commit 191d1f1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 36 deletions.
4 changes: 0 additions & 4 deletions packages/shiki/languages/cobol.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,6 @@
{
"match": "(^[0-9 ][0-9 ][0-9 ][0-9 ][0-9 ][0-9 ])",
"name": "constant.numeric.cobol"
},
{
"match": "(?i:with|debugging|mode)",
"name": "keyword.identifiers.cobol"
}
],
"name": "comment.block.cobol.remark",
Expand Down
47 changes: 18 additions & 29 deletions packages/shiki/languages/dart.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dart",
"version": "1.4.0",
"version": "1.3.0",
"fileTypes": ["dart"],
"scopeName": "source.dart",
"foldingStartMarker": "\\{\\s*$",
Expand Down Expand Up @@ -64,16 +64,6 @@
}
],
"repository": {
"dartdoc-codeblock-triple": {
"begin": "^\\s*///\\s*(?!\\s*```)",
"end": "\n",
"contentName": "variable.other.source.dart"
},
"dartdoc-codeblock-block": {
"begin": "^\\s*\\*\\s*(?!(\\s*```|/))",
"end": "\n",
"contentName": "variable.other.source.dart"
},
"dartdoc": {
"patterns": [
{
Expand All @@ -85,31 +75,30 @@
}
},
{
"begin": "^\\s*///\\s*(```)",
"end": "^\\s*///\\s*(```)|^(?!\\s*///)",
"patterns": [
{
"include": "#dartdoc-codeblock-triple"
"match": "^ {4,}(?![ \\*]).*",
"captures": {
"0": {
"name": "variable.name.source.dart"
}
]
}
},
{
"begin": "^\\s*\\*\\s*(```)",
"end": "^\\s*\\*\\s*(```)|^(?=\\s*\\*/)",
"patterns": [
{
"include": "#dartdoc-codeblock-block"
}
]
"contentName": "variable.other.source.dart",
"begin": "```.*?$",
"end": "```"
},
{
"match": "`[^`\n]+`",
"name": "variable.other.source.dart"
"match": "(`[^`]+?`)",
"captures": {
"0": {
"name": "variable.other.source.dart"
}
}
},
{
"match": "\\s{4,}(.*)$",
"match": "(\\* (( ).*))$",
"captures": {
"1": {
"2": {
"name": "variable.other.source.dart"
}
}
Expand Down Expand Up @@ -163,7 +152,7 @@
{
"name": "comment.block.documentation.dart",
"begin": "///",
"end": "^(?!\\s*///)",
"while": "^\\s*///",
"patterns": [
{
"include": "#dartdoc"
Expand Down
22 changes: 19 additions & 3 deletions packages/shiki/languages/svelte.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@
"tags-name": {
"patterns": [
{
"match": "(svelte)(:)([a-z][\\w0-9:-]*)",
"match": "(svelte)(:)([a-z][\\w:-]*)",
"captures": {
"1": {
"name": "keyword.control.svelte"
Expand All @@ -978,8 +978,24 @@
"name": "keyword.control.svelte"
},
{
"match": "[A-Z][a-zA-Z0-9_]*",
"name": "support.class.component.svelte"
"match": "([\\w]+(?:\\.[\\w]+)+)|([A-Z][\\w]+)",
"captures": {
"1": {
"patterns": [
{
"match": "\\w+",
"name": "support.class.component.svelte"
},
{
"match": "\\.",
"name": "punctuation.definition.keyword.svelte"
}
]
},
"2": {
"name": "support.class.component.svelte"
}
}
},
{
"match": "[a-z][\\w0-9:]*-[\\w0-9:-]*",
Expand Down

0 comments on commit 191d1f1

Please sign in to comment.