Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
aebb9e3a
Commit
aebb9e3a
authored
10 years ago
by
Abdelouahab
Committed by
Marijn Haverbeke
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[tornado mode] Add new keywords and organized the list.
parent
f6c5defa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mode/tornado/index.html
+1
-1
1 addition, 1 deletion
mode/tornado/index.html
mode/tornado/tornado.js
+6
-8
6 additions, 8 deletions
mode/tornado/tornado.js
with
7 additions
and
9 deletions
mode/tornado/index.html
+
1
−
1
View file @
aebb9e3a
...
...
@@ -42,7 +42,7 @@
<li>
{% item.name %}
</li>
{% empty %}
<li>
You have no items in your list.
</li>
{% end
for
%}
{% end %}
</ul>
</body>
</html>
...
...
This diff is collapsed.
Click to expand it.
mode/tornado/tornado.js
+
6
−
8
View file @
aebb9e3a
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment