Skip to content

Commit

Permalink
Add tmlanguage schema to textmate language files + fix the errors hop…
Browse files Browse the repository at this point in the history
…efully. (#926)

This might
  • Loading branch information
jasikpark authored Jul 28, 2021
1 parent 72898e3 commit cb7c9d5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
1 change: 1 addition & 0 deletions tools/vscode/syntaxes/astro-markdown.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"information_for_contributors": ["This file has been modified from https://github.com/microsoft/vscode-markdown-tm-grammar/commit/399ff6f608a7bef3f68713be23cdcb4c6d475804"],
"name": "Astro Markdown",
"scopeName": "text.html.markdown.astro",
Expand Down
79 changes: 40 additions & 39 deletions tools/vscode/syntaxes/astro.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"fileTypes": ["astro"],
"foldingStartMarker": "(?x)\n(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)\\b.*?>\n|<!--(?!.*--\\s*>)\n|^<!--\\ \\#tminclude\\ (?>.*?-->)$\n|<\\?(?:php)?.*\\b(if|for(each)?|while)\\b.+:\n|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n)",
"foldingStopMarker": "(?x)\n(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl)>\n|^(?!.*?<!--).*?--\\s*>\n|^<!--\\ end\\ tminclude\\ -->$\n|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n|^[^{]*\\}\n)",
Expand Down Expand Up @@ -73,11 +74,11 @@
},
{
"begin": "<!--",
"captures": [
{
"captures": {
"0": {
"name": "punctuation.definition.comment.html"
}
],
},
"end": "--\\s*>",
"name": "comment.block.html",
"patterns": [
Expand All @@ -89,11 +90,11 @@
},
{
"begin": "<!",
"captures": [
{
"captures": {
"0": {
"name": "punctuation.definition.tag.html"
}
],
},
"end": ">",
"name": "meta.tag.sgml.html",
"patterns": [
Expand Down Expand Up @@ -392,11 +393,11 @@
},
{
"begin": "/\\*",
"captures": [
{
"captures": {
"0": {
"name": "punctuation.definition.comment.js"
}
],
},
"end": "\\*/|(?=</script)",
"name": "comment.block.js"
},
Expand Down Expand Up @@ -583,17 +584,17 @@
},
"string-double-quoted": {
"begin": "\"",
"beginCaptures": [
{
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
],
},
"end": "\"",
"endCaptures": [
{
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
],
},
"name": "string.quoted.double.html",
"patterns": [
{
Expand All @@ -603,17 +604,17 @@
},
"string-single-quoted": {
"begin": "'",
"beginCaptures": [
{
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
],
},
"end": "'",
"endCaptures": [
{
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
],
},
"name": "string.quoted.single.html",
"patterns": [
{
Expand All @@ -640,18 +641,18 @@
"patterns": [
{
"begin": "\"",
"beginCaptures": [
{
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
],
},
"contentName": "meta.toc-list.id.html",
"end": "\"",
"endCaptures": [
{
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
],
},
"name": "string.quoted.double.html",
"patterns": [
{
Expand All @@ -664,18 +665,18 @@
},
{
"begin": "'",
"beginCaptures": [
{
"beginCaptures": {
"0": {
"name": "punctuation.definition.string.begin.html"
}
],
},
"contentName": "meta.toc-list.id.html",
"end": "'",
"endCaptures": [
{
"endCaptures": {
"0": {
"name": "punctuation.definition.string.end.html"
}
],
},
"name": "string.quoted.single.html",
"patterns": [
{
Expand Down Expand Up @@ -749,17 +750,17 @@
"patterns": [
{
"begin": "\\{",
"beginCaptures": [
{
"beginCaptures": {
"0": {
"name": "punctuation.definition.generic.begin.html"
}
],
},
"end": "\\}",
"endCaptures": [
{
"endCaptures": {
"0": {
"name": "punctuation.definition.generic.end.html"
}
],
},
"name": "expression.embbeded.astro",
"patterns": [
{
Expand Down

2 comments on commit cb7c9d5

@vercel
Copy link

@vercel vercel bot commented on cb7c9d5 Jul 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on cb7c9d5 Jul 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

astro-docs – ./docs

docs.astro.build
astro-docs-pikapkg.vercel.app
astro-docs.vercel.app
astro-docs-git-main-pikapkg.vercel.app

Please sign in to comment.