We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2d9b5 commit 9a88838Copy full SHA for 9a88838
mode/tcl/tcl.js
@@ -51,11 +51,11 @@ CodeMirror.defineMode("tcl", function() {
51
} else if (/\d/.test(ch)) {
52
stream.eatWhile(/[\w\.]/);
53
return "number";
54
- } else if (ch == "#" && stream.eat("*")) {
55
- return chain(stream, state, tokenComment);
56
- } else if (ch == "#" && stream.match(/ *\[ *\[/)) {
57
- return chain(stream, state, tokenUnparsed);
58
- } else if (ch == "#" && stream.eat("#")) {
+ } else if (ch == "#") {
+ if (stream.eat("*"))
+ return chain(stream, state, tokenComment);
+ if (ch == "#" && stream.match(/ *\[ *\[/))
+ return chain(stream, state, tokenUnparsed);
59
stream.skipToEnd();
60
return "comment";
61
} else if (ch == '"') {
0 commit comments