|
14 | 14 | "use strict"; |
15 | 15 |
|
16 | 16 | 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"]; |
25 | 23 | keywords = new RegExp("^((" + keywords.join(")|(") + "))\\b"); |
26 | 24 |
|
27 | 25 | function tokenBase (stream, state) { |
|
0 commit comments