]> BookStack Code Mirror - bookstack/commitdiff
Updated codemirror SQL mode name
authorDan Brown <redacted>
Sun, 16 Dec 2018 15:38:49 +0000 (15:38 +0000)
committerDan Brown <redacted>
Sun, 16 Dec 2018 15:38:49 +0000 (15:38 +0000)
Now will highlight a lot more SQL syntax.
Closes #1181.

resources/assets/js/services/code.js

index 636b841338401491aa20e95d3a936f9d86d38a6a..cfeabd3be0ce32aa84a5fe4ea6a74f3c38a3915e 100644 (file)
@@ -52,7 +52,7 @@ const modeMap = {
     sh: 'shell',
     bash: 'shell',
     toml: 'toml',
-    sql: 'sql',
+    sql: 'text/x-sql',
     xml: 'xml',
     yaml: 'yaml',
     yml: 'yaml',