Skip to content

Commit

Permalink
fix: convert indendation to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed May 2, 2022
1 parent 8f9bd7e commit e9f6fff
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 155 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: deploy
on:
push:
tags:
tags:
- v*

jobs:
Expand Down
106 changes: 53 additions & 53 deletions language-configuration.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
{
"comments": {
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [
"<!--",
"-->"
]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "<",
"close": ">",
"notIn": [
"string"
]
}
],
"surroundingPairs": [
["(", ")"],
["[", "]"],
["`", "`"],
["_", "_"],
["*", "*"],
["{", "}"],
["'", "'"],
["\"", "\""]
],
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*<!--\\s*#?region\\b.*-->",
"end": "^\\s*<!--\\s*#?endregion\\b.*-->"
}
},
"wordPattern": { "pattern": "(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})(((\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})|[_])?(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark}))*", "flags": "ug" },
}
"comments": {
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [
"<!--",
"-->"
]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{
"open": "{",
"close": "}"
},
{
"open": "[",
"close": "]"
},
{
"open": "(",
"close": ")"
},
{
"open": "<",
"close": ">",
"notIn": [
"string"
]
}
],
"surroundingPairs": [
["(", ")"],
["[", "]"],
["`", "`"],
["_", "_"],
["*", "*"],
["{", "}"],
["'", "'"],
["\"", "\""]
],
"folding": {
"offSide": true,
"markers": {
"start": "^\\s*<!--\\s*#?region\\b.*-->",
"end": "^\\s*<!--\\s*#?endregion\\b.*-->"
}
},
"wordPattern": { "pattern": "(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})(((\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark})|[_])?(\\p{Alphabetic}|\\p{Number}|\\p{Nonspacing_Mark}))*", "flags": "ug" },
}
170 changes: 85 additions & 85 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
{
"name": "mdc",
"displayName": "MDC",
"description": "Provides syntax highlighting and colon matching for MDC (Markdown Components) files for Nuxt Content.",
"version": "0.1.5",
"publisher": "Nuxt",
"icon": "images/icon.png",
"repository": {
"url": "https://github.com/nuxtlabs/vscode-mdc",
"type": "git"
},
"homepage": "https://github.com/nuxtlabs/vscode-mdc/blob/main/README.md",
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.42.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "mdc",
"aliases": [
"MDC",
"mdc",
"Markdown Components",
"Nuxt Content"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "mdc",
"scopeName": "text.markdown.mdc",
"path": "./syntaxes/mdc.tmLanguage.json",
"injectTo": [
"text.html.markdown",
"text.html.markdown.jsx"
]
}
],
"snippets": [
{
"language": "mdc",
"path": "./snippets/markdown.code-snippets"
}
]
},
"standard-version": {
"skip": {
"tag": true
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"release": "standard-version && git push --follow-tags",
"generate": "vsce package --yarn"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^8.2.3",
"@types/node": "16.x",
"@types/vscode": "1.42.0",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"eslint": "^7.32.0",
"glob": "^7.2.0",
"mocha": "^8.4.0",
"standard-version": "^9.3.2",
"typescript": "^4.6.2",
"vsce": "^2.6.7",
"vscode-test": "^1.6.1"
}
}
"name": "mdc",
"displayName": "MDC",
"description": "Provides syntax highlighting and colon matching for MDC (Markdown Components) files for Nuxt Content.",
"version": "0.1.5",
"publisher": "Nuxt",
"icon": "images/icon.png",
"repository": {
"url": "https://github.com/nuxtlabs/vscode-mdc",
"type": "git"
},
"homepage": "https://github.com/nuxtlabs/vscode-mdc/blob/main/README.md",
"license": "SEE LICENSE IN LICENSE",
"engines": {
"vscode": "^1.42.0"
},
"categories": [
"Programming Languages",
"Snippets"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"languages": [
{
"id": "mdc",
"aliases": [
"MDC",
"mdc",
"Markdown Components",
"Nuxt Content"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "mdc",
"scopeName": "text.markdown.mdc",
"path": "./syntaxes/mdc.tmLanguage.json",
"injectTo": [
"text.html.markdown",
"text.html.markdown.jsx"
]
}
],
"snippets": [
{
"language": "mdc",
"path": "./snippets/markdown.code-snippets"
}
]
},
"standard-version": {
"skip": {
"tag": true
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"release": "standard-version && git push --follow-tags",
"generate": "vsce package --yarn"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^8.2.3",
"@types/node": "16.x",
"@types/vscode": "1.42.0",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"eslint": "^7.32.0",
"glob": "^7.2.0",
"mocha": "^8.4.0",
"standard-version": "^9.3.2",
"typescript": "^4.6.2",
"vsce": "^2.6.7",
"vscode-test": "^1.6.1"
}
}
32 changes: 16 additions & 16 deletions snippets/markdown.code-snippets
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Insert span text": {
"prefix": "span",
"body": "[${1:${TM_SELECTED_TEXT}}]$0",
"description": "Insert span text"
},
"Insert Simple Block": {
"prefix": ["block", "::"],
"body": ["::$1", "${0:${TM_SELECTED_TEXT}}", "::"],
"description": "Insert Simple Block"
},
"Insert Data Block": {
"prefix": ["block", "::-"],
"body": ["::$1", "---", "$2","---","${0:${TM_SELECTED_TEXT}}","::"],
"description": "Insert Data Block"
}
}
"Insert span text": {
"prefix": "span",
"body": "[${1:${TM_SELECTED_TEXT}}]$0",
"description": "Insert span text"
},
"Insert Simple Block": {
"prefix": ["block", "::"],
"body": ["::$1", "${0:${TM_SELECTED_TEXT}}", "::"],
"description": "Insert Simple Block"
},
"Insert Data Block": {
"prefix": ["block", "::-"],
"body": ["::$1", "---", "$2","---","${0:${TM_SELECTED_TEXT}}","::"],
"description": "Insert Data Block"
}
}

0 comments on commit e9f6fff

Please sign in to comment.