summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/mediawiki/README.salvus
diff options
context:
space:
mode:
authorWu Cheng-Han2016-09-18 16:40:51 +0800
committerWu Cheng-Han2016-09-18 16:40:51 +0800
commit42145e401983994d813ce0bf0ea775e6473a070e (patch)
treeaf5a660005f2e7d267953e2b0d61b668e30f86e6 /public/vendor/codemirror/mode/mediawiki/README.salvus
parent591134007ca70a542239badc61073f0be515abf4 (diff)
Update to support tiddlywiki and mediawiki syntax highlighting in editor
Diffstat (limited to 'public/vendor/codemirror/mode/mediawiki/README.salvus')
-rwxr-xr-xpublic/vendor/codemirror/mode/mediawiki/README.salvus16
1 files changed, 16 insertions, 0 deletions
diff --git a/public/vendor/codemirror/mode/mediawiki/README.salvus b/public/vendor/codemirror/mode/mediawiki/README.salvus
new file mode 100755
index 00000000..1babd779
--- /dev/null
+++ b/public/vendor/codemirror/mode/mediawiki/README.salvus
@@ -0,0 +1,16 @@
+This is from https://github.com/wikimedia/mediawiki-extensions-CodeMirror
+
+1. However, note I fixed a bug in their code:
+
+@@ -684,7 +684,7 @@ CodeMirror.defineMode( 'mediawiki', function( config/*, parserConfig */ ) {
+ var tagname = stream.match( /[^>\/\s\u00a0\.\*\,\[\]\{\}\$\^\+\?\|\/\\'`~<=!@#%&\(\)-]+/ );
+ if ( tagname ) {
+ tagname = tagname[0].toLowerCase();
+- if ( tagname in config.mwextTags ) { // Parser function
++ if ( config.mwextTags && tagname in config.mwextTags ) { // Parser function
+ if ( isCloseTag === true ) {
+ // @todo message
+ return 'error';
+
+
+2. Note the comment about "evil BS" in the css file. \ No newline at end of file