Skip to content

Commit aebb9e3

Browse files
abdelouahabbmarijnh
authored andcommitted
[tornado mode] Add new keywords and organized the list.
1 parent f6c5def commit aebb9e3

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

mode/tornado/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1>
4242
<li>{% item.name %}</li>
4343
{% empty %}
4444
<li>You have no items in your list.</li>
45-
{% endfor %}
45+
{% end %}
4646
</ul>
4747
</body>
4848
</html>

mode/tornado/tornado.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@
1414
"use strict";
1515

1616
CodeMirror.defineMode("tornado:inner", function() {
17-
var keywords = ["block", "for", "in", "true", "false",
18-
"none", "self", "super", "if", "end", "as", "not", "and",
19-
"else", "import", "with", "without", "context",
20-
"try", "except", "put", "escape", "xhtml_escape", "url_escape",
21-
"json_encode", "squeeze", "linkify", "datetime",
22-
"extends", "include", "load", "length", "comment",
23-
"pass", "while", "set", "import", "from",
24-
"autoescape", "raw", "module"];
17+
var keywords = ["and","as","assert","autoescape","block","break","class","comment","context",
18+
"continue","datetime","def","del","elif","else","end","escape","except",
19+
"exec","extends","false","finally","for","from","global","if","import","in",
20+
"include","is","json_encode","lambda","length","linkify","load","module",
21+
"none","not","or","pass","print","put","raise","raw","return","self","set",
22+
"squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];
2523
keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b");
2624

2725
function tokenBase (stream, state) {

0 commit comments

Comments
 (0)