Skip to content

Commit

Permalink
chore: use lean4 scope for lean-markdown (leanprover#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuisi authored Nov 26, 2023
1 parent 2fd18c6 commit 207c0f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions vscode-lean4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@
"configuration": "./language-configuration.json"
},
{
"id": "leanmarkdown",
"id": "lean4markdown",
"aliases": [],
"extensions": [
".leanmarkdown"
".lean4markdown"
],
"configuration": "./language-configuration.json"
}
Expand All @@ -395,9 +395,9 @@
"path": "./syntaxes/lean4.json"
},
{
"language": "leanmarkdown",
"scopeName": "source.lean.markdown",
"path": "./syntaxes/lean-markdown.json"
"language": "lean4markdown",
"scopeName": "source.lean4.markdown",
"path": "./syntaxes/lean4-markdown.json"
},
{
"scopeName": "markdown.lean4.codeblock",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"version": "https://github.com/microsoft/vscode/blob/df3ae4adefbb780f5f686e58ac6a8d305a8c86dc/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json",
"name": "Markdown",
"scopeName": "source.lean.markdown",
"scopeName": "source.lean4.markdown",
"patterns": [
{
"include": "#frontMatter"
Expand Down
8 changes: 4 additions & 4 deletions vscode-lean4/syntaxes/lean4.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,27 @@
"begin": "--", "end": "$",
"name": "comment.line.double-dash.lean4",
"patterns": [
{ "include": "source.lean.markdown" }
{ "include": "source.lean4.markdown" }
]
},
"docComment": {
"begin": "/--", "end": "-/", "name": "comment.block.documentation.lean4",
"patterns": [
{ "include": "source.lean.markdown" },
{ "include": "source.lean4.markdown" },
{ "include": "#blockComment" }
]
},
"modDocComment": {
"begin": "/-!", "end": "-/", "name": "comment.block.documentation.lean4",
"patterns": [
{ "include": "source.lean.markdown" },
{ "include": "source.lean4.markdown" },
{ "include": "#blockComment" }
]
},
"blockComment": {
"begin": "/-", "end": "-/", "name": "comment.block.lean4",
"patterns": [
{ "include": "source.lean.markdown" },
{ "include": "source.lean4.markdown" },
{ "include": "#blockComment" }
]
},
Expand Down

0 comments on commit 207c0f1

Please sign in to comment.