diff options
author | Wu Cheng-Han | 2015-07-04 11:31:01 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-07-04 11:31:01 +0800 |
commit | 01685c255fda6e13f1cd2980130d2e388d52125c (patch) | |
tree | c329610e7011c0d77c55ef54f371181aeb362d13 /public/vendor/codemirror/mode/asterisk | |
parent | 1d843c8ac257d512a96cf054ab24e6a3c2f34e26 (diff) |
Updated codemirror to 5.4.0
Diffstat (limited to 'public/vendor/codemirror/mode/asterisk')
-rwxr-xr-x | public/vendor/codemirror/mode/asterisk/asterisk.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/public/vendor/codemirror/mode/asterisk/asterisk.js b/public/vendor/codemirror/mode/asterisk/asterisk.js index a1ead115..b7ebfc5a 100755 --- a/public/vendor/codemirror/mode/asterisk/asterisk.js +++ b/public/vendor/codemirror/mode/asterisk/asterisk.js @@ -65,8 +65,7 @@ CodeMirror.defineMode("asterisk", function() { function basicToken(stream,state){ var cur = ''; - var ch = ''; - ch = stream.next(); + var ch = stream.next(); // comment if(ch == ";") { stream.skipToEnd(); @@ -136,7 +135,6 @@ CodeMirror.defineMode("asterisk", function() { token: function(stream, state) { var cur = ''; - var ch = ''; if(stream.eatSpace()) return null; // extension started if(state.extenStart){ @@ -170,7 +168,7 @@ CodeMirror.defineMode("asterisk", function() { } else if(state.extenPriority) { state.extenPriority = false; state.extenApplication = true; - ch = stream.next(); // get comma + stream.next(); // get comma if(state.extenSame) return null; stream.eatWhile(/[^,]/); return "number"; |