mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Update CodeMirror to 5.13.5
This commit is contained in:
parent
edc3a31dfd
commit
8bf516263c
84 changed files with 2837 additions and 504 deletions
|
@ -25,7 +25,7 @@ CodeMirror.defineMode("sparql", function(config) {
|
|||
"strbefore", "strafter", "year", "month", "day", "hours", "minutes", "seconds",
|
||||
"timezone", "tz", "now", "uuid", "struuid", "md5", "sha1", "sha256", "sha384",
|
||||
"sha512", "coalesce", "if", "strlang", "strdt", "isnumeric", "regex", "exists",
|
||||
"isblank", "isliteral", "a"]);
|
||||
"isblank", "isliteral", "a", "bind"]);
|
||||
var keywords = wordRegexp(["base", "prefix", "select", "distinct", "reduced", "construct", "describe",
|
||||
"ask", "from", "named", "where", "order", "limit", "offset", "filter", "optional",
|
||||
"graph", "by", "asc", "desc", "as", "having", "undef", "values", "group",
|
||||
|
@ -135,7 +135,11 @@ CodeMirror.defineMode("sparql", function(config) {
|
|||
else if (curPunc == "{") pushContext(state, "}", stream.column());
|
||||
else if (/[\]\}\)]/.test(curPunc)) {
|
||||
while (state.context && state.context.type == "pattern") popContext(state);
|
||||
if (state.context && curPunc == state.context.type) popContext(state);
|
||||
if (state.context && curPunc == state.context.type) {
|
||||
popContext(state);
|
||||
if (curPunc == "}" && state.context && state.context.type == "pattern")
|
||||
popContext(state);
|
||||
}
|
||||
}
|
||||
else if (curPunc == "." && state.context && state.context.type == "pattern") popContext(state);
|
||||
else if (/atom|string|variable/.test(style) && state.context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue