Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: damirka/move-syntax
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: de9244e
Choose a base ref
...
head repository: damirka/move-syntax
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 87e11a9
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 23, 2023

  1. version 0.4.13

    damirka committed Nov 23, 2023
    Copy the full SHA
    38fb5ac View commit details
  2. version 0.4.14

    damirka committed Nov 23, 2023
    Copy the full SHA
    e60d144 View commit details
  3. version bump

    damirka committed Nov 23, 2023
    Copy the full SHA
    87e11a9 View commit details
Showing with 124 additions and 1 deletion.
  1. +8 −0 CHANGELOG.md
  2. +29 −1 package.json
  3. +45 −0 syntaxes/move-markdown-injection.json
  4. +42 −0 syntaxes/move-mdx-injection.json
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,14 @@

Version history from v0.1.0 to this day.

## v0.4.14 - Adds MDX support in VSCode

- Adds support for "move" in codeblocks in VSCode (given that MDX extension is installed)

## v0.4.13 - Adds Markdown support in VSCode

- Adds support for "move" in markdown codeblocks in VSCode

## v0.4.12 - Small patch in Macros

- Highlights "`,`" comma separator in macros.
30 changes: 29 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "move-syntax",
"version": "0.4.12",
"version": "0.4.14",
"description": "Move syntax for VSCode",
"publisher": "damirka",
"displayName": "Move syntax",
@@ -28,13 +28,41 @@
".move"
],
"configuration": "./language-configuration.json"
},
{
"id": "move-markdown-injection"
},
{
"id": "move-mdx-injection"
}
],
"grammars": [
{
"language": "move",
"scopeName": "source.move",
"path": "./syntaxes/move.tmLanguage.json"
},
{
"language": "move-markdown-injection",
"scopeName": "markdown.move.codeblock",
"path": "./syntaxes/move-markdown-injection.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.move": "move"
}
},
{
"language": "move-mdx-injection",
"scopeName": "mdx.move.codeblock",
"path": "./syntaxes/move-mdx-injection.json",
"injectTo": [
"source.mdx"
],
"embeddedLanguages": {
"meta.embedded.block.move": "move"
}
}
]
},
45 changes: 45 additions & 0 deletions syntaxes/move-markdown-injection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"fileTypes": [],
"injectionSelector": "L:text.html.markdown",
"patterns": [
{
"include": "#move-code-block"
}
],
"repository": {
"move-code-block": {
"begin": "(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(move)(\\s+[^`~]*)?$)",
"name": "markup.fenced_code.block.markdown",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "punctuation.definition.markdown"
},
"4": {
"name": "fenced_code.block.language.markdown"
},
"5": {
"name": "fenced_code.block.language.attributes.markdown"
}
},
"endCaptures": {
"3": {
"name": "punctuation.definition.markdown"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.move",
"patterns": [
{
"include": "source.move"
}
]
}
]
}
},
"scopeName": "markdown.move.codeblock"
}
42 changes: 42 additions & 0 deletions syntaxes/move-mdx-injection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"fileTypes": [],
"injectionSelector": "L:source.mdx",
"patterns": [
{
"include": "#LANGUAGE-code-block"
}
],
"repository": {
"LANGUAGE-code-block": {
"begin": "(^|\\G)(\\s*)(\\`{3,}|~{3,})\\s*(?i:(LANGUAGE)",
"name": "markup.code.other.mdx",
"end": "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$",
"beginCaptures": {
"3": {
"name": "string.other.begin.code.fenced.mdx"
},
"4": {
"name": "entity.name.function.mdx"
}
},
"endCaptures": {
"3": {
"name": "string.other.end.code.fenced.mdx"
}
},
"patterns": [
{
"begin": "(^|\\G)(\\s*)(.*)",
"while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
"contentName": "meta.embedded.block.LANGUAGE",
"patterns": [
{
"include": "source.LANGUAGE"
}
]
}
]
}
},
"scopeName": "mdx.LANGUAGE.codeblock"
}