diff options
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"; |