Skip to content
Snippets Groups Projects
Commit aebb9e3a authored by Abdelouahab's avatar Abdelouahab Committed by Marijn Haverbeke
Browse files

[tornado mode] Add new keywords and organized the list.

parent f6c5defa
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@
<li>{% item.name %}</li>
{% empty %}
<li>You have no items in your list.</li>
{% endfor %}
{% end %}
</ul>
</body>
</html>
......
......@@ -14,14 +14,12 @@
"use strict";
CodeMirror.defineMode("tornado:inner", function() {
var keywords = ["block", "for", "in", "true", "false",
"none", "self", "super", "if", "end", "as", "not", "and",
"else", "import", "with", "without", "context",
"try", "except", "put", "escape", "xhtml_escape", "url_escape",
"json_encode", "squeeze", "linkify", "datetime",
"extends", "include", "load", "length", "comment",
"pass", "while", "set", "import", "from",
"autoescape", "raw", "module"];
var keywords = ["and","as","assert","autoescape","block","break","class","comment","context",
"continue","datetime","def","del","elif","else","end","escape","except",
"exec","extends","false","finally","for","from","global","if","import","in",
"include","is","json_encode","lambda","length","linkify","load","module",
"none","not","or","pass","print","put","raise","raw","return","self","set",
"squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];
keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
function tokenBase (stream, state) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment