Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: samples/third_party/codemirror/js/parsejavascript.js

Issue 3083012: Tidying up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/o3d-webgl/stream.js ('k') | samples/third_party/codemirror/js/parsesparql.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/codemirror/js/parsejavascript.js
===================================================================
--- samples/third_party/codemirror/js/parsejavascript.js (revision 55159)
+++ samples/third_party/codemirror/js/parsejavascript.js (working copy)
@@ -68,7 +68,7 @@
// below to communicate with the driver loop in the 'next'
// function.
var consume, marked;
-
+
// The iterator object.
var parser = {next: next, copy: copy};
@@ -105,7 +105,7 @@
lexical.align = true;
// Execute actions until one 'consumes' the token and we can
- // return it. Marked is used to
+ // return it. Marked is used to
while(true){
consume = marked = false;
// Take and execute the topmost action.
@@ -131,7 +131,7 @@
// between runs of the parser.
function copy(){
var _context = context, _lexical = lexical, _cc = cc.concat([]), _tokenState = tokens.state;
-
+
return function(input){
context = _context;
lexical = _lexical;
@@ -190,7 +190,7 @@
}
return false;
}
-
+
// Push a new lexical context of the given type.
function pushlex(type){
var result = function(){
@@ -207,7 +207,7 @@
// The 'lex' flag on these actions is used by the 'next' function
// to know they can (and have to) be ran before moving on to the
// next token.
-
+
// Creates an action that discards tokens until it finds one of
// the given type.
function expect(wanted){
@@ -314,7 +314,7 @@
function funarg(type, value){
if (type == "variable"){register(value); cont();}
}
-
+
return parser;
}
« no previous file with comments | « samples/o3d-webgl/stream.js ('k') | samples/third_party/codemirror/js/parsesparql.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698