MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getKeywords

Function getKeywords

static/editor.md/lib/codemirror/addon/hint/sql-hint.js:23–27  ·  view source on GitHub ↗
(editor)

Source from the content-addressed store, hash-verified

21 var Pos = CodeMirror.Pos;
22
23 function getKeywords(editor) {
24 var mode = editor.doc.modeOption;
25 if (mode === "sql") mode = "text/x-sql";
26 return CodeMirror.resolveMode(mode).keywords;
27 }
28
29 function getText(item) {
30 return typeof item == "string" ? item : item.text;

Callers 1

sql-hint.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected