Skip to content

Commit 5603ee8

Browse files
authored
Merge pull request #82 from Vi-brance/master
Many small improvements
2 parents 54636c5 + d36f849 commit 5603ee8

File tree

6 files changed

+7
-16
lines changed

6 files changed

+7
-16
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"dbaeumer.vscode-eslint",
1010
// "pedro-w.tmlanguage",
1111
"redhat.vscode-yaml",
12-
"gamunu.vscode-yarn"
12+
"gamunu.vscode-yarn",
13+
"editorconfig.editorconfig"
1314
]
1415
}

language-configuration.yaml renamed to languages/language-configuration.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ brackets:
2020
autoClosingPairs:
2121
- ['{', '}']
2222
- ['[', ']']
23-
- ['<', '>']
2423
- ['-{', '}-']
2524
- ['<!--', '-->']
2625
# more tags: https://www.mediawiki.org/wiki/Parser_extension_tags

media/preview-dark.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

media/preview-light.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
"command": "wikitext.getPreview",
4242
"title": "Get preview",
4343
"category": "Wikitext",
44-
"icon": {
45-
"light": "./media/preview-light.svg",
46-
"dark": "./media/preview-dark.svg"
47-
}
44+
"icon": "$(open-preview)"
4845
},
4946
{
5047
"command": "wikitext.login",
@@ -153,7 +150,7 @@
153150
"mimetypes": [
154151
"text/x-wiki"
155152
],
156-
"configuration": "./language-configuration.json"
153+
"configuration": "./languages/language-configuration.json"
157154
}
158155
],
159156
"grammars": [
@@ -271,7 +268,7 @@
271268
"test": "yarn run test-node && yarn run test-web",
272269
"test-node": "node ./dist/test/runTest.js",
273270
"test-web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=./dist/test/suite/index-web.js",
274-
"convert": "js-yaml snippets/snippets.yaml > snippets/snippets.json && js-yaml syntaxes/wikitext.tmLanguage.yaml > syntaxes/wikitext.tmLanguage.json && js-yaml language-configuration.yaml > language-configuration.json",
271+
"convert": "js-yaml snippets/snippets.yaml > snippets/snippets.json && js-yaml syntaxes/wikitext.tmLanguage.yaml > syntaxes/wikitext.tmLanguage.json && js-yaml languages/language-configuration.yaml > languages/language-configuration.json",
275272
"package": "vsce package --yarn"
276273
},
277274
"devDependencies": {

syntaxes/wikitext.tmLanguage.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,8 +2306,8 @@ repository:
23062306
name: punctuation.definition.tag.end.wikitext
23072307
name: meta.tag.metedata.void.wikitext
23082308
normal-wiki-tags:
2309-
match: (?i)(</?)(includeonly|onlyinclude)(\s+[^>]+)?\s*(>)
2310-
# 1</ 12 includeonly 23 x=y 3 4>4
2309+
match: (?i)(</?)(includeonly|onlyinclude|noinclude)(\s+[^>]+)?\s*(>)
2310+
# 1</ 12 includeonly 23 x=y 3 4>4
23112311
#
23122312
captures:
23132313
1:

0 commit comments

Comments
 (0)