diff options
author | Valerio Virgillito | 2012-07-17 11:28:39 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-17 11:28:39 -0700 |
commit | 4f737b24c19ddc02d20f9783b8b080fc6ef11142 (patch) | |
tree | 212d164c0f83d80394e34f1df532ea0461ad328d /imports/codemirror/mode/coffeescript/coffeescript.js | |
parent | 5146f224258929415adf4a8022e492454b4e2476 (diff) | |
parent | 0e04fff0ea80fa5cbe96b8354db38bd334aea83a (diff) | |
download | ninja-4f737b24c19ddc02d20f9783b8b080fc6ef11142.tar.gz |
Merge pull request #396 from ananyasen/codemirror2.3-upgrade
upgrade to codemirror 2.3
Diffstat (limited to 'imports/codemirror/mode/coffeescript/coffeescript.js')
-rw-r--r-- | imports/codemirror/mode/coffeescript/coffeescript.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/imports/codemirror/mode/coffeescript/coffeescript.js b/imports/codemirror/mode/coffeescript/coffeescript.js index 4f2bd66d..dece5f8a 100644 --- a/imports/codemirror/mode/coffeescript/coffeescript.js +++ b/imports/codemirror/mode/coffeescript/coffeescript.js | |||
@@ -60,6 +60,12 @@ CodeMirror.defineMode('coffeescript', function(conf) { | |||
60 | 60 | ||
61 | var ch = stream.peek(); | 61 | var ch = stream.peek(); |
62 | 62 | ||
63 | // Handle docco title comment (single line) | ||
64 | if (stream.match("####")) { | ||
65 | stream.skipToEnd(); | ||
66 | return 'comment'; | ||
67 | } | ||
68 | |||
63 | // Handle multi line comments | 69 | // Handle multi line comments |
64 | if (stream.match("###")) { | 70 | if (stream.match("###")) { |
65 | state.tokenize = longComment; | 71 | state.tokenize = longComment; |