@bhsd/codemirror-mediawiki 3.11.4 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -7
- package/dist/closeTags.d.ts +3 -0
- package/dist/closeTags.js +31 -0
- package/dist/codemirror.d.ts +16 -2
- package/dist/codemirror.js +34 -14
- package/dist/fold.js +4 -4
- package/dist/html.js +2 -2
- package/dist/index.d.ts +22 -3
- package/dist/index.js +55 -28
- package/dist/javascript.d.ts +7 -0
- package/dist/javascript.js +8 -0
- package/dist/lint.d.ts +6 -0
- package/dist/lint.js +28 -0
- package/dist/linter.js +3 -2
- package/dist/lua.js +3 -2
- package/dist/main.min.js +37 -37
- package/dist/matchBrackets.d.ts +11 -1
- package/dist/matchBrackets.js +49 -24
- package/dist/matchTag.d.ts +6 -0
- package/dist/matchTag.js +1 -1
- package/dist/mediawiki.d.ts +1 -1
- package/dist/mediawiki.js +7 -2
- package/dist/mw.min.js +39 -39
- package/dist/statusBar.js +12 -4
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/dist/token.d.ts +2 -2
- package/dist/token.js +25 -16
- package/dist/wiki.min.js +39 -39
- package/i18n/en.json +2 -1
- package/i18n/zh-hans.json +2 -1
- package/i18n/zh-hant.json +2 -1
- package/package.json +15 -15
package/dist/lua.js
CHANGED
|
@@ -4,7 +4,7 @@ import { syntaxTree, LanguageSupport, StreamLanguage, foldService, HighlightStyl
|
|
|
4
4
|
import { snippetCompletion } from '@codemirror/autocomplete';
|
|
5
5
|
import { tags } from '@lezer/highlight';
|
|
6
6
|
import { leadingSpaces, sliceDoc } from './util.js';
|
|
7
|
-
import {
|
|
7
|
+
import { lightHighlightStyle } from './theme.js';
|
|
8
8
|
const map = {
|
|
9
9
|
1: 'constant',
|
|
10
10
|
2: 'function',
|
|
@@ -130,6 +130,7 @@ const map = {
|
|
|
130
130
|
server: 1,
|
|
131
131
|
siteName: 1,
|
|
132
132
|
stylePath: 1,
|
|
133
|
+
wikiId: 1,
|
|
133
134
|
namespaces: 3,
|
|
134
135
|
contentNamespaces: 3,
|
|
135
136
|
subjectNamespaces: 3,
|
|
@@ -438,7 +439,7 @@ const fold = ({ doc, tabSize }, start, from) => {
|
|
|
438
439
|
return empty || j === number ? null : { from, to: doc.line(j).to };
|
|
439
440
|
};
|
|
440
441
|
const support = [
|
|
441
|
-
|
|
442
|
+
lightHighlightStyle,
|
|
442
443
|
syntaxHighlighting(HighlightStyle.define([{ tag: tags.standard(tags.variableName), class: 'cm-globals' }])),
|
|
443
444
|
lang.data.of({ autocomplete: source }),
|
|
444
445
|
foldService.of(fold),
|