diff options
Diffstat (limited to 'tests/examplefiles/coffee-script/underscore.coffee.output')
-rw-r--r-- | tests/examplefiles/coffee-script/underscore.coffee.output | 3310 |
1 files changed, 1868 insertions, 1442 deletions
diff --git a/tests/examplefiles/coffee-script/underscore.coffee.output b/tests/examplefiles/coffee-script/underscore.coffee.output index 26be4df2..d650f63b 100644 --- a/tests/examplefiles/coffee-script/underscore.coffee.output +++ b/tests/examplefiles/coffee-script/underscore.coffee.output @@ -1,248 +1,297 @@ -' ' Text -'# Underscore.coffee\n' Comment.Single +' ' Text.Whitespace +'# Underscore.coffee' Comment.Single +'\n' Text.Whitespace -' ' Text -'# (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.\n' Comment.Single +' ' Text.Whitespace +'# (c) 2010 Jeremy Ashkenas, DocumentCloud Inc.' Comment.Single +'\n' Text.Whitespace -' ' Text -'# Underscore is freely distributable under the terms of the MIT license.\n' Comment.Single +' ' Text.Whitespace +'# Underscore is freely distributable under the terms of the MIT license.' Comment.Single +'\n' Text.Whitespace -' ' Text -'# Portions of Underscore are inspired by or borrowed from Prototype.js,\n' Comment.Single +' ' Text.Whitespace +'# Portions of Underscore are inspired by or borrowed from Prototype.js,' Comment.Single +'\n' Text.Whitespace -' ' Text -"# Oliver Steele's Functional, and John Resig's Micro-Templating.\n" Comment.Single +' ' Text.Whitespace +"# Oliver Steele's Functional, and John Resig's Micro-Templating." Comment.Single +'\n' Text.Whitespace -' ' Text -'# For all details and documentation:\n' Comment.Single +' ' Text.Whitespace +'# For all details and documentation:' Comment.Single +'\n' Text.Whitespace -' ' Text -'# http://documentcloud.github.com/underscore/\n' Comment.Single +' ' Text.Whitespace +'# http://documentcloud.github.com/underscore/' Comment.Single +'\n' Text.Whitespace -'\n\n ' Text -'# ------------------------- Baseline setup ---------------------------------\n' Comment.Single +'\n\n ' Text.Whitespace +'# ------------------------- Baseline setup ---------------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -'# Establish the root object, "window" in the browser, or "global" on the server.\n' Comment.Single +'\n ' Text.Whitespace +'# Establish the root object, "window" in the browser, or "global" on the server.' Comment.Single +'\n' Text.Whitespace -' ' Text -'root: ' Name.Variable +' ' Text.Whitespace +'root' Name.Variable +':' Operator +' ' Text.Whitespace 'this' Keyword -'\n\n\n ' Text -'# Save the previous value of the "_" variable.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Save the previous value of the "_" variable.' Comment.Single +'\n' Text.Whitespace -' ' Text -'previousUnderscore: ' Name.Variable +' ' Text.Whitespace +'previousUnderscore' Name.Variable +':' Operator +' ' Text.Whitespace 'root' Name.Other '.' Punctuation '_' Name.Other -'\n\n\n ' Text -'# If Underscore is called as a function, it returns a wrapped object that\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# If Underscore is called as a function, it returns a wrapped object that' Comment.Single +'\n' Text.Whitespace -' ' Text -'# can be used OO-style. This wrapper holds altered versions of all the\n' Comment.Single +' ' Text.Whitespace +'# can be used OO-style. This wrapper holds altered versions of all the' Comment.Single +'\n' Text.Whitespace -' ' Text -'# underscore functions. Wrapped objects may be chained.\n' Comment.Single +' ' Text.Whitespace +'# underscore functions. Wrapped objects may be chained.' Comment.Single +'\n' Text.Whitespace -' ' Text -'wrapper: ' Name.Variable +' ' Text.Whitespace +'wrapper' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'this' Keyword '.' Punctuation -'_wrapped: ' Name.Variable +'_wrapped' Name.Variable +':' Operator +' ' Text.Whitespace 'obj' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'this' Keyword -'\n\n\n ' Text -'# Establish the object that gets thrown to break out of a loop iteration.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Establish the object that gets thrown to break out of a loop iteration.' Comment.Single +'\n' Text.Whitespace -' ' Text -'breaker: ' Name.Variable +' ' Text.Whitespace +'breaker' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'typeof' Keyword '(' Punctuation 'StopIteration' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String 'undefined' Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace "'" Literal.String '__break__' Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'StopIteration' Name.Other -'\n\n\n ' Text -'# Create a safe reference to the Underscore object forreference below.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Create a safe reference to the Underscore object forreference below.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_: ' Name.Variable -'root._: ' Name.Variable +' ' Text.Whitespace +'_' Name.Variable +':' Operator +' ' Text.Whitespace +'root._' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'wrapper' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Export the Underscore object for CommonJS.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Export the Underscore object for CommonJS.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'typeof' Keyword '(' Punctuation 'exports' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '!=' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String 'undefined' Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text -'exports._: ' Name.Variable +' ' Text.Whitespace +'exports._' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other -'\n\n\n ' Text -'# Create quick reference variables for speed access to core prototypes.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Create quick reference variables for speed access to core prototypes.' Comment.Single +'\n' Text.Whitespace -' ' Text -'slice: ' Name.Variable -' ' Text +' ' Text.Whitespace +'slice' Name.Variable +':' Operator +' ' Text.Whitespace 'Array' Name.Builtin ':' Operator ':' Operator 'slice' Name.Other -'\n ' Text -'unshift: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'unshift' Name.Variable +':' Operator +' ' Text.Whitespace 'Array' Name.Builtin ':' Operator ':' Operator 'unshift' Name.Other -'\n ' Text -'toString: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'toString' Name.Variable +':' Operator +' ' Text.Whitespace 'Object' Name.Builtin ':' Operator ':' Operator 'toString' Name.Other -'\n ' Text -'hasOwnProperty: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'hasOwnProperty' Name.Variable +':' Operator +' ' Text.Whitespace 'Object' Name.Builtin ':' Operator ':' Operator 'hasOwnProperty' Name.Other -'\n ' Text -'propertyIsEnumerable: ' Name.Variable +'\n ' Text.Whitespace +'propertyIsEnumerable' Name.Variable +':' Operator +' ' Text.Whitespace 'Object' Name.Builtin ':' Operator ':' Operator 'propertyIsEnumerable' Name.Other -'\n\n\n ' Text -'# Current version.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Current version.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.VERSION: ' Name.Variable +' ' Text.Whitespace +'_.VERSION' Name.Variable +':' Operator +' ' Text.Whitespace "'" Literal.String '0.5.7' Literal.String "'" Literal.String -'\n\n\n ' Text -'# ------------------------ Collection Functions: ---------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# ------------------------ Collection Functions: ---------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -'# The cornerstone, an each implementation.\n' Comment.Single +'\n ' Text.Whitespace +'# The cornerstone, an each implementation.' Comment.Single +'\n' Text.Whitespace -' ' Text -'# Handles objects implementing forEach, arrays, and raw objects.\n' Comment.Single +' ' Text.Whitespace +'# Handles objects implementing forEach, arrays, and raw objects.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.each: ' Name.Variable +' ' Text.Whitespace +'_.each' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text -'index: ' Name.Variable +'\n ' Text.Whitespace +'index' Name.Variable +':' Operator +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'try' Keyword -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'forEach' Name.Other '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'forEach' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArguments' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'i' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation '0' Literal.Number.Integer '.' Punctuation @@ -252,80 +301,84 @@ '.' Punctuation 'length' Name.Other ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'key' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'key' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'catch' Keyword -' ' Text +' ' Text.Whitespace 'e' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'throw' Keyword -' ' Text +' ' Text.Whitespace 'e' Name.Other -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'e' Name.Other -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace 'breaker' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -'# Return the results of applying the iterator to each element. Use JavaScript\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return the results of applying the iterator to each element. Use JavaScript' Comment.Single +'\n' Text.Whitespace -' ' Text -"# 1.6's version of map, if possible.\n" Comment.Single +' ' Text.Whitespace +"# 1.6's version of map, if possible." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.map: ' Name.Variable +' ' Text.Whitespace +'_.map' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'map' Name.Other '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -335,20 +388,22 @@ 'map' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text -'results: ' Name.Variable +'\n ' Text.Whitespace +'results' Name.Variable +':' Operator +' ' Text.Whitespace '[' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other '.' Punctuation 'push' Name.Other @@ -359,30 +414,34 @@ '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other -'\n\n\n ' Text -'# Reduce builds up a single result from a list of values. Also known as\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Reduce builds up a single result from a list of values. Also known as' Comment.Single +'\n' Text.Whitespace -' ' Text -"# inject, or foldl. Uses JavaScript 1.8's version of reduce, if possible.\n" Comment.Single +' ' Text.Whitespace +"# inject, or foldl. Uses JavaScript 1.8's version of reduce, if possible." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.reduce: ' Name.Variable +' ' Text.Whitespace +'_.reduce' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, memo, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'reduce' Name.Other @@ -393,21 +452,21 @@ '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'memo' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -417,49 +476,55 @@ 'reduce' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text -'memo: ' Name.Variable +'\n ' Text.Whitespace +'memo' Name.Variable +':' Operator +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'memo' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other -'\n\n\n ' Text -'# The right-associative version of reduce, also known as foldr. Uses\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# The right-associative version of reduce, also known as foldr. Uses' Comment.Single +'\n' Text.Whitespace -' ' Text -"# JavaScript 1.8's version of reduceRight, if available.\n" Comment.Single +' ' Text.Whitespace +"# JavaScript 1.8's version of reduceRight, if available." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.reduceRight: ' Name.Variable +' ' Text.Whitespace +'_.reduceRight' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, memo, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'reduceRight' Name.Other @@ -470,21 +535,21 @@ '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'memo' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -494,11 +559,11 @@ 'reduceRight' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'clone' Name.Other @@ -515,93 +580,106 @@ '(' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index) ->' Name.Function -'\n ' Text -'memo: ' Name.Variable +'\n ' Text.Whitespace +'memo' Name.Variable +':' Operator +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'memo' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other -'\n\n\n ' Text -'# Return the first value which passes a truth test.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return the first value which passes a truth test.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.detect: ' Name.Variable +' ' Text.Whitespace +'_.detect' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'null' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'value' Name.Other -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'breakLoop' Name.Other '(' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other -'\n\n\n ' Text -"# Return all the elements that pass a truth test. Use JavaScript 1.6's\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# Return all the elements that pass a truth test. Use JavaScript 1.6's" Comment.Single +'\n' Text.Whitespace -' ' Text -'# filter(), if it exists.\n' Comment.Single +' ' Text.Whitespace +'# filter(), if it exists.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.select: ' Name.Variable +' ' Text.Whitespace +'_.select' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -610,145 +688,156 @@ '.' Punctuation 'filter' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'filter' Name.Other '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation -'\n ' Text -'results: ' Name.Variable +'\n ' Text.Whitespace +'results' Name.Variable +':' Operator +' ' Text.Whitespace '[' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other '.' Punctuation 'push' Name.Other '(' Punctuation 'value' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other -'\n\n\n ' Text -'# Return all the elements for which a truth test fails.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return all the elements for which a truth test fails.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.reject: ' Name.Variable +' ' Text.Whitespace +'_.reject' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text -'results: ' Name.Variable +'\n ' Text.Whitespace +'results' Name.Variable +':' Operator +' ' Text.Whitespace '[' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other '.' Punctuation 'push' Name.Other '(' Punctuation 'value' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other -'\n\n\n ' Text -'# Determine whether all of the elements match a truth test. Delegate to\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Determine whether all of the elements match a truth test. Delegate to' Comment.Single +'\n' Text.Whitespace -' ' Text -"# JavaScript 1.6's every(), if it is present.\n" Comment.Single +' ' Text.Whitespace +"# JavaScript 1.6's every(), if it is present." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.all: ' Name.Variable +' ' Text.Whitespace +'_.all' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace '||' Operator '=' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'identity' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'every' Name.Other '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -757,88 +846,96 @@ '.' Punctuation 'every' Name.Other ')' Punctuation -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'true' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'breakLoop' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'unless' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation -'result: ' Name.Variable +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'result' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other -'\n\n\n ' Text -'# Determine if at least one element in the object matches a truth test. Use\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Determine if at least one element in the object matches a truth test. Use' Comment.Single +'\n' Text.Whitespace -' ' Text -"# JavaScript 1.6's some(), if it exists.\n" Comment.Single +' ' Text.Whitespace +"# JavaScript 1.6's some(), if it exists." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.any: ' Name.Variable +' ' Text.Whitespace +'_.any' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace '||' Operator '=' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'identity' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'some' Name.Other '(' Punctuation 'iterator' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'context' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -847,139 +944,152 @@ '.' Punctuation 'some' Name.Other ')' Punctuation -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'false' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'breakLoop' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation -'result: ' Name.Variable +'result' Name.Variable +':' Operator +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other -'\n\n\n ' Text -'# Determine if a given value is included in the array or object,\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Determine if a given value is included in the array or object,' Comment.Single +'\n' Text.Whitespace -' ' Text -"# based on '==='.\n" Comment.Single +' ' Text.Whitespace +"# based on '==='." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.include: ' Name.Variable +' ' Text.Whitespace +'_.include' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, target) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'indexOf' Name.Other '(' Punctuation 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'target' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'key' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'target' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'false' Keyword.Constant -'\n\n\n ' Text -'# Invoke a method with arguments on every item in a collection.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Invoke a method with arguments on every item in a collection.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.invoke: ' Name.Variable +' ' Text.Whitespace +'_.invoke' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, method) ->' Name.Function -'\n ' Text -'args: ' Name.Variable +'\n ' Text.Whitespace +'args' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(' Punctuation 'arguments' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'if' Keyword -' ' Text +' ' Text.Whitespace 'method' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'val' Name.Other '[' Punctuation 'method' Name.Other ']' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'val' Name.Other ')' Punctuation '.' Punctuation @@ -987,49 +1097,55 @@ '(' Punctuation 'val' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'args' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -'# Convenience version of a common use case of map: fetching a property.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Convenience version of a common use case of map: fetching a property.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.pluck: ' Name.Variable +' ' Text.Whitespace +'_.pluck' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, key) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'map' Name.Other '(' Punctuation 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(' Punctuation '(val) ->' Name.Function -' ' Text +' ' Text.Whitespace 'val' Name.Other '[' Punctuation 'key' Name.Other ']' Punctuation ')' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Return the maximum item or (item-based computation).\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return the maximum item or (item-based computation).' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.max: ' Name.Variable +' ' Text.Whitespace +'_.max' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'Math' Name.Builtin '.' Punctuation 'max' Name.Other @@ -1038,102 +1154,117 @@ '(' Punctuation 'Math' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace '{' Punctuation -'computed: ' Name.Variable +'computed' Name.Variable +':' Operator +' ' Text.Whitespace '-' Operator 'Infinity' Keyword.Constant '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text -'computed: ' Name.Variable +'\n ' Text.Whitespace +'computed' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'computed' Name.Other -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace 'result' Name.Other '.' Punctuation 'computed' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation -'result: ' Name.Variable +'result' Name.Variable +':' Operator +' ' Text.Whitespace '{' Punctuation -'value: ' Name.Variable +'value' Name.Variable +':' Operator +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text -'computed: ' Name.Variable +' ' Text.Whitespace +'computed' Name.Variable +':' Operator +' ' Text.Whitespace 'computed' Name.Other '}' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other '.' Punctuation 'value' Name.Other -'\n\n\n ' Text -'# Return the minimum element (or element-based computation).\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return the minimum element (or element-based computation).' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.min: ' Name.Variable +' ' Text.Whitespace +'_.min' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'Math' Name.Builtin '.' Punctuation 'min' Name.Other @@ -1142,99 +1273,114 @@ '(' Punctuation 'Math' Name.Builtin ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text -'result: ' Name.Variable +'\n ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace '{' Punctuation -'computed: ' Name.Variable +'computed' Name.Variable +':' Operator +' ' Text.Whitespace 'Infinity' Keyword.Constant '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text -'computed: ' Name.Variable +'\n ' Text.Whitespace +'computed' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'value' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'computed' Name.Other -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace 'result' Name.Other '.' Punctuation 'computed' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation -'result: ' Name.Variable +'result' Name.Variable +':' Operator +' ' Text.Whitespace '{' Punctuation -'value: ' Name.Variable +'value' Name.Variable +':' Operator +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text -'computed: ' Name.Variable +' ' Text.Whitespace +'computed' Name.Variable +':' Operator +' ' Text.Whitespace 'computed' Name.Other '}' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other '.' Punctuation 'value' Name.Other -'\n\n\n ' Text -"# Sort the object's values by a criteria produced by an iterator.\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# Sort the object's values by a criteria produced by an iterator." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.sortBy: ' Name.Variable +' ' Text.Whitespace +'_.sortBy' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, iterator, context) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'pluck' Name.Other @@ -1244,142 +1390,160 @@ '_' Name.Other '.' Punctuation 'map' Name.Other -' ' Text +' ' Text.Whitespace 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(value, index, list) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '{' Punctuation -'value: ' Name.Variable +'value' Name.Variable +':' Operator +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text -'criteria: ' Name.Variable +' ' Text.Whitespace +'criteria' Name.Variable +':' Operator +' ' Text.Whitespace 'iterator' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'context' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'value' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'index' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'list' Name.Other ')' Punctuation '}' Punctuation -'\n ' Text +'\n ' Text.Whitespace ')' Punctuation '.' Punctuation 'sort' Name.Other '(' Punctuation '(left, right) ->' Name.Function -'\n ' Text -'a: ' Name.Variable +'\n ' Text.Whitespace +'a' Name.Variable +':' Operator +' ' Text.Whitespace 'left' Name.Other '.' Punctuation 'criteria' Name.Other ';' Punctuation -' ' Text -'b: ' Name.Variable +' ' Text.Whitespace +'b' Name.Variable +':' Operator +' ' Text.Whitespace 'right' Name.Other '.' Punctuation 'criteria' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace ')' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'value' Literal.String "'" Literal.String ')' Punctuation -'\n\n\n ' Text -'# Use a comparator function to figure out at what index an object should\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Use a comparator function to figure out at what index an object should' Comment.Single +'\n' Text.Whitespace -' ' Text -'# be inserted so as to maintain order. Uses binary search.\n' Comment.Single +' ' Text.Whitespace +'# be inserted so as to maintain order. Uses binary search.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.sortedIndex: ' Name.Variable +' ' Text.Whitespace +'_.sortedIndex' Name.Variable +':' Operator +' ' Text.Whitespace '(array, obj, iterator) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'iterator' Name.Other -' ' Text +' ' Text.Whitespace '||' Operator '=' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'identity' Name.Other -'\n ' Text -'low: ' Name.Variable +'\n ' Text.Whitespace +'low' Name.Variable +':' Operator +' ' Text.Whitespace '0' Literal.Number.Integer ';' Punctuation -' ' Text -'high: ' Name.Variable +' ' Text.Whitespace +'high' Name.Variable +':' Operator +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'length' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'low' Name.Other -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace 'high' Name.Other -'\n ' Text -'mid: ' Name.Variable +'\n ' Text.Whitespace +'mid' Name.Variable +':' Operator +' ' Text.Whitespace '(' Punctuation 'low' Name.Other -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'high' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '>>' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '(' Punctuation 'array' Name.Other @@ -1387,70 +1551,77 @@ 'mid' Name.Other ']' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace '<' Operator -' ' Text +' ' Text.Whitespace 'iterator' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text -'low: ' Name.Variable +' ' Text.Whitespace +'low' Name.Variable +':' Operator +' ' Text.Whitespace 'mid' Name.Other -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text -'high: ' Name.Variable +' ' Text.Whitespace +'high' Name.Variable +':' Operator +' ' Text.Whitespace 'mid' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'low' Name.Other -'\n\n\n ' Text -'# Convert anything iterable into a real, live array.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Convert anything iterable into a real, live array.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.toArray: ' Name.Variable +' ' Text.Whitespace +'_.toArray' Name.Variable +':' Operator +' ' Text.Whitespace '(iterable) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '!' Operator 'iterable' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'iterable' Name.Other '.' Punctuation 'toArray' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'iterable' Name.Other '.' Punctuation 'toArray' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'iterable' Name.Other -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '_' Name.Other '.' Punctuation @@ -1459,18 +1630,18 @@ 'iterable' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'slice' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'iterable' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '_' Name.Other '.' Punctuation @@ -1479,20 +1650,23 @@ 'iterable' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'values' Name.Other '(' Punctuation 'iterable' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Return the number of elements in an object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return the number of elements in an object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.size: ' Name.Variable +' ' Text.Whitespace +'_.size' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'toArray' Name.Other @@ -1501,132 +1675,150 @@ ')' Punctuation '.' Punctuation 'length' Name.Other -'\n\n\n ' Text -'# -------------------------- Array Functions: ------------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# -------------------------- Array Functions: ------------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -'# Get the first element of an array. Passing "n" will return the first N\n' Comment.Single +'\n ' Text.Whitespace +'# Get the first element of an array. Passing "n" will return the first N' Comment.Single +'\n' Text.Whitespace -' ' Text -'# values in the array. Aliased as "head". The "guard" check allows it to work\n' Comment.Single +' ' Text.Whitespace +'# values in the array. Aliased as "head". The "guard" check allows it to work' Comment.Single +'\n' Text.Whitespace -' ' Text -'# with _.map.\n' Comment.Single +' ' Text.Whitespace +'# with _.map.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.first: ' Name.Variable +' ' Text.Whitespace +'_.first' Name.Variable +':' Operator +' ' Text.Whitespace '(array, n, guard) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'n' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'guard' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'slice' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'array' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'n' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation '0' Literal.Number.Integer ']' Punctuation -'\n\n\n ' Text -'# Returns everything but the first entry of the array. Aliased as "tail".\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Returns everything but the first entry of the array. Aliased as "tail".' Comment.Single +'\n' Text.Whitespace -' ' Text -'# Especially useful on the arguments object. Passing an "index" will return\n' Comment.Single +' ' Text.Whitespace +'# Especially useful on the arguments object. Passing an "index" will return' Comment.Single +'\n' Text.Whitespace -' ' Text -'# the rest of the values in the array from that index onward. The "guard"\n' Comment.Single +' ' Text.Whitespace +'# the rest of the values in the array from that index onward. The "guard"' Comment.Single +'\n' Text.Whitespace -' ' Text -'# check allows it to work with _.map.\n' Comment.Single +' ' Text.Whitespace +'# check allows it to work with _.map.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.rest: ' Name.Variable +' ' Text.Whitespace +'_.rest' Name.Variable +':' Operator +' ' Text.Whitespace '(array, index, guard) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'slice' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'array' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isUndefined' Name.Other '(' Punctuation 'index' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace 'guard' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'index' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Get the last element of an array.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Get the last element of an array.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.last: ' Name.Variable +' ' Text.Whitespace +'_.last' Name.Variable +':' Operator +' ' Text.Whitespace '(array) ->' Name.Function -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation 'array' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ']' Punctuation -'\n\n\n ' Text -'# Trim out all falsy values from an array.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Trim out all falsy values from an array.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.compact: ' Name.Variable +' ' Text.Whitespace +'_.compact' Name.Variable +':' Operator +' ' Text.Whitespace '(array) ->' Name.Function -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation '0' Literal.Number.Integer '.' Punctuation @@ -1636,35 +1828,38 @@ '.' Punctuation 'length' Name.Other ']' Punctuation -' ' Text +' ' Text.Whitespace 'when' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation -'\n\n\n ' Text -'# Return a completely flattened version of an array.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return a completely flattened version of an array.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.flatten: ' Name.Variable +' ' Text.Whitespace +'_.flatten' Name.Variable +':' Operator +' ' Text.Whitespace '(array) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'reduce' Name.Other -' ' Text +' ' Text.Whitespace 'array' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(memo, value) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'memo' Name.Other '.' Punctuation 'concat' Name.Other @@ -1676,174 +1871,191 @@ 'value' Name.Other ')' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'value' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other '.' Punctuation 'push' Name.Other '(' Punctuation 'value' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other -'\n\n\n ' Text -'# Return a version of the array that does not contain the specified value(s).\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return a version of the array that does not contain the specified value(s).' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.without: ' Name.Variable +' ' Text.Whitespace +'_.without' Name.Variable +':' Operator +' ' Text.Whitespace '(array) ->' Name.Function -'\n ' Text -'values: ' Name.Variable +'\n ' Text.Whitespace +'values' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(' Punctuation 'arguments' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'toArray' Name.Other '(' Punctuation 'array' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'when' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'include' Name.Other '(' Punctuation 'values' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Produce a duplicate-free version of the array. If the array has already\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Produce a duplicate-free version of the array. If the array has already' Comment.Single +'\n' Text.Whitespace -' ' Text -'# been sorted, you have the option of using a faster algorithm.\n' Comment.Single +' ' Text.Whitespace +'# been sorted, you have the option of using a faster algorithm.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.uniq: ' Name.Variable +' ' Text.Whitespace +'_.uniq' Name.Variable +':' Operator +' ' Text.Whitespace '(array, isSorted) ->' Name.Function -'\n ' Text -'memo: ' Name.Variable +'\n ' Text.Whitespace +'memo' Name.Variable +':' Operator +' ' Text.Whitespace '[' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'el' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'toArray' Name.Other '(' Punctuation 'array' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other '.' Punctuation 'push' Name.Other '(' Punctuation 'el' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace '||' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'if' Keyword -' ' Text +' ' Text.Whitespace 'isSorted' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'last' Name.Other '(' Punctuation 'memo' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace 'el' Name.Other -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'include' Name.Other '(' Punctuation 'memo' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'el' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'memo' Name.Other -'\n\n\n ' Text -'# Produce an array that contains every item shared between all the\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Produce an array that contains every item shared between all the' Comment.Single +'\n' Text.Whitespace -' ' Text -'# passed-in arrays.\n' Comment.Single +' ' Text.Whitespace +'# passed-in arrays.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.intersect: ' Name.Variable +' ' Text.Whitespace +'_.intersect' Name.Variable +':' Operator +' ' Text.Whitespace '(array) ->' Name.Function -'\n ' Text -'rest: ' Name.Variable +'\n ' Text.Whitespace +'rest' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(' Punctuation 'arguments' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'select' Name.Other -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'uniq' Name.Other @@ -1851,43 +2063,48 @@ 'array' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(item) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'all' Name.Other -' ' Text +' ' Text.Whitespace 'rest' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(other) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'indexOf' Name.Other '(' Punctuation 'other' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'item' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n\n\n ' Text -'# Zip together multiple lists into a single array -- elements that share\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Zip together multiple lists into a single array -- elements that share' Comment.Single +'\n' Text.Whitespace -' ' Text -'# an index go together.\n' Comment.Single +' ' Text.Whitespace +'# an index go together.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.zip: ' Name.Variable +' ' Text.Whitespace +'_.zip' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -'\n ' Text -'length: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'length' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'max' Name.Other @@ -1898,28 +2115,29 @@ '(' Punctuation 'arguments' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'length' Literal.String "'" Literal.String ')' Punctuation ')' Punctuation -'\n ' Text -'results: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'results' Name.Variable +':' Operator +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Array' Name.Builtin '(' Punctuation 'length' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation '0' Literal.Number.Integer '.' Punctuation @@ -1927,362 +2145,400 @@ '.' Punctuation 'length' Name.Other ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'pluck' Name.Other '(' Punctuation 'arguments' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'String' Name.Builtin '(' Punctuation 'i' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'results' Name.Other -'\n\n\n ' Text -"# If the browser doesn't supply us with indexOf (I'm looking at you, MSIE),\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# If the browser doesn't supply us with indexOf (I'm looking at you, MSIE)," Comment.Single +'\n' Text.Whitespace -' ' Text -'# we need this function. Return the position of the first occurence of an\n' Comment.Single +' ' Text.Whitespace +'# we need this function. Return the position of the first occurence of an' Comment.Single +'\n' Text.Whitespace -' ' Text -'# item in an array, or -1 if the item is not included in the array.\n' Comment.Single +' ' Text.Whitespace +'# item in an array, or -1 if the item is not included in the array.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.indexOf: ' Name.Variable +' ' Text.Whitespace +'_.indexOf' Name.Variable +':' Operator +' ' Text.Whitespace '(array, item) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'indexOf' Name.Other '(' Punctuation 'item' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'indexOf' Name.Other -'\n ' Text -'i: ' Name.Variable +'\n ' Text.Whitespace +'i' Name.Variable +':' Operator +' ' Text.Whitespace '0' Literal.Number.Integer ';' Punctuation -' ' Text -'l: ' Name.Variable +' ' Text.Whitespace +'l' Name.Variable +':' Operator +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'length' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'l' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace 'i' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'item' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other '++' Operator -'\n ' Text +'\n ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -'\n\n\n ' Text -"# Provide JavaScript 1.6's lastIndexOf, delegating to the native function,\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# Provide JavaScript 1.6's lastIndexOf, delegating to the native function," Comment.Single +'\n' Text.Whitespace -' ' Text -'# if possible.\n' Comment.Single +' ' Text.Whitespace +'# if possible.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.lastIndexOf: ' Name.Variable +' ' Text.Whitespace +'_.lastIndexOf' Name.Variable +':' Operator +' ' Text.Whitespace '(array, item) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'lastIndexOf' Name.Other '(' Punctuation 'item' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'lastIndexOf' Name.Other -'\n ' Text -'i: ' Name.Variable +'\n ' Text.Whitespace +'i' Name.Variable +':' Operator +' ' Text.Whitespace 'array' Name.Other '.' Punctuation 'length' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'array' Name.Other '[' Punctuation 'i' Name.Other ']' Punctuation -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'item' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other '-' Operator '-' Operator -'\n ' Text +'\n ' Text.Whitespace '-' Operator '1' Literal.Number.Integer -'\n\n\n ' Text -'# Generate an integer Array containing an arithmetic progression. A port of\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Generate an integer Array containing an arithmetic progression. A port of' Comment.Single +'\n' Text.Whitespace -' ' Text -'# the native Python range() function. See:\n' Comment.Single +' ' Text.Whitespace +'# the native Python range() function. See:' Comment.Single +'\n' Text.Whitespace -' ' Text -'# http://docs.python.org/library/functions.html#range\n' Comment.Single +' ' Text.Whitespace +'# http://docs.python.org/library/functions.html#range' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.range: ' Name.Variable +' ' Text.Whitespace +'_.range' Name.Variable +':' Operator +' ' Text.Whitespace '(start, stop, step) ->' Name.Function -'\n ' Text -'a: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'a' Name.Variable +':' Operator +' ' Text.Whitespace 'arguments' Name.Other -'\n ' Text -'solo: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'solo' Name.Variable +':' Operator +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace '<=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n ' Text -'i: ' Name.Variable -'start: ' Name.Variable +'\n ' Text.Whitespace +'i' Name.Variable +':' Operator +' ' Text.Whitespace +'start' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'solo' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '[' Punctuation '0' Literal.Number.Integer ']' Punctuation ';' Punctuation -'\n ' Text -'stop: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'stop' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'solo' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '[' Punctuation '0' Literal.Number.Integer ']' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '[' Punctuation '1' Literal.Number.Integer ']' Punctuation ';' Punctuation -'\n ' Text -'step: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'step' Name.Variable +':' Operator +' ' Text.Whitespace 'a' Name.Other '[' Punctuation '2' Literal.Number.Integer ']' Punctuation -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n ' Text -'len: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'len' Name.Variable +':' Operator +' ' Text.Whitespace 'Math' Name.Builtin '.' Punctuation 'ceil' Name.Other '(' Punctuation '(' Punctuation 'stop' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace 'start' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'step' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation ']' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'len' Name.Other -' ' Text +' ' Text.Whitespace '<=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text -'range: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'range' Name.Variable +':' Operator +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Array' Name.Builtin '(' Punctuation 'len' Name.Other ')' Punctuation -'\n ' Text -'idx: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'idx' Name.Variable +':' Operator +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'while' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'range' Name.Other -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation 'if' Keyword -' ' Text +' ' Text.Whitespace 'step' Name.Other -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace 'stop' Name.Other -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'stop' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace 'i' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '>=' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text +'\n ' Text.Whitespace 'range' Name.Other '[' Punctuation 'idx' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace 'i' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'idx' Name.Other '++' Operator -'\n ' Text +'\n ' Text.Whitespace 'i' Name.Other '+=' Operator -' ' Text +' ' Text.Whitespace 'step' Name.Other -'\n\n\n ' Text -'# ----------------------- Function Functions: -----------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# ----------------------- Function Functions: -----------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -"# Create a function bound to a given object (assigning 'this', and arguments,\n" Comment.Single +'\n ' Text.Whitespace +"# Create a function bound to a given object (assigning 'this', and arguments," Comment.Single +'\n' Text.Whitespace -' ' Text -"# optionally). Binding with arguments is also known as 'curry'.\n" Comment.Single +' ' Text.Whitespace +"# optionally). Binding with arguments is also known as 'curry'." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.bind: ' Name.Variable +' ' Text.Whitespace +'_.bind' Name.Variable +':' Operator +' ' Text.Whitespace '(func, obj) ->' Name.Function -'\n ' Text -'args: ' Name.Variable +'\n ' Text.Whitespace +'args' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(arguments, 2)\n ->' Name.Function -' ' Text +' ' Text.Whitespace 'func' Name.Other '.' Punctuation 'apply' Name.Other '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace 'root' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'args' Name.Other '.' Punctuation 'concat' Name.Other @@ -2290,60 +2546,66 @@ 'arguments' Name.Other ')' Punctuation ')' Punctuation -'\n\n\n ' Text -"# Bind all of an object's methods to that object. Useful for ensuring that\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# Bind all of an object's methods to that object. Useful for ensuring that" Comment.Single +'\n' Text.Whitespace -' ' Text -'# all callbacks defined on an object belong to it.\n' Comment.Single +' ' Text.Whitespace +'# all callbacks defined on an object belong to it.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.bindAll: ' Name.Variable +' ' Text.Whitespace +'_.bindAll' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text -'funcs: ' Name.Variable +'\n ' Text.Whitespace +'funcs' Name.Variable +':' Operator +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'arguments' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace '>' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(' Punctuation 'arguments' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'functions' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other '(' Punctuation 'funcs' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '(f) ->' Name.Function -' ' Text +' ' Text.Whitespace 'obj' Name.Other '[' Punctuation 'f' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'bind' Name.Other @@ -2353,62 +2615,72 @@ 'f' Name.Other ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -'# Delays a function for the given number of milliseconds, and then calls\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Delays a function for the given number of milliseconds, and then calls' Comment.Single +'\n' Text.Whitespace -' ' Text -'# it with the arguments supplied.\n' Comment.Single +' ' Text.Whitespace +'# it with the arguments supplied.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.delay: ' Name.Variable +' ' Text.Whitespace +'_.delay' Name.Variable +':' Operator +' ' Text.Whitespace '(func, wait) ->' Name.Function -'\n ' Text -'args: ' Name.Variable +'\n ' Text.Whitespace +'args' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other '(' Punctuation 'arguments' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '2' Literal.Number.Integer ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'setTimeout' Name.Other '(' Punctuation '(' Punctuation '->' Name.Function -' ' Text +' ' Text.Whitespace 'func' Name.Other '.' Punctuation 'apply' Name.Other '(' Punctuation 'func' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'args' Name.Other ')' Punctuation ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'wait' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Defers a function, scheduling it to run after the current call stack has\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Defers a function, scheduling it to run after the current call stack has' Comment.Single +'\n' Text.Whitespace -' ' Text -'# cleared.\n' Comment.Single +' ' Text.Whitespace +'# cleared.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.defer: ' Name.Variable +' ' Text.Whitespace +'_.defer' Name.Variable +':' Operator +' ' Text.Whitespace '(func) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'delay' Name.Other @@ -2417,11 +2689,11 @@ '(' Punctuation '_' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation 'func' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ']' Punctuation '.' Punctuation @@ -2435,28 +2707,33 @@ ')' Punctuation ')' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Returns the first function passed as an argument to the second,\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Returns the first function passed as an argument to the second,' Comment.Single +'\n' Text.Whitespace -' ' Text -'# allowing you to adjust arguments, run code before and after, and\n' Comment.Single +' ' Text.Whitespace +'# allowing you to adjust arguments, run code before and after, and' Comment.Single +'\n' Text.Whitespace -' ' Text -'# conditionally execute the original function.\n' Comment.Single +' ' Text.Whitespace +'# conditionally execute the original function.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.wrap: ' Name.Variable +' ' Text.Whitespace +'_.wrap' Name.Variable +':' Operator +' ' Text.Whitespace '(func, wrapper) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '->' Name.Function -' ' Text +' ' Text.Whitespace 'wrapper' Name.Other '.' Punctuation 'apply' Name.Other '(' Punctuation 'wrapper' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '[' Punctuation 'func' Name.Other ']' Punctuation @@ -2466,46 +2743,56 @@ 'arguments' Name.Other ')' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Returns a function that is the composition of a list of functions, each\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Returns a function that is the composition of a list of functions, each' Comment.Single +'\n' Text.Whitespace -' ' Text -'# consuming the return value of the function that follows.\n' Comment.Single +' ' Text.Whitespace +'# consuming the return value of the function that follows.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.compose: ' Name.Variable +' ' Text.Whitespace +'_.compose' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -'\n ' Text -'funcs: ' Name.Variable +'\n ' Text.Whitespace +'funcs' Name.Variable +':' Operator +' ' Text.Whitespace 'arguments' Name.Other -'\n ' Text +'\n ' Text.Whitespace '->' Name.Function -'\n ' Text -'args: ' Name.Variable +'\n ' Text.Whitespace +'args' Name.Variable +':' Operator +' ' Text.Whitespace 'arguments' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'i' Name.Other -' ' Text +' ' Text.Whitespace 'in' Keyword -' ' Text +' ' Text.Whitespace '[' Punctuation '(' Punctuation 'funcs' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace '-' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer ')' Punctuation '.' Punctuation '.' Punctuation '0' Literal.Number.Integer ']' Punctuation -'\n ' Text -'args: ' Name.Variable +'\n ' Text.Whitespace +'args' Name.Variable +':' Operator +' ' Text.Whitespace '[' Punctuation 'funcs' Name.Other '[' Punctuation @@ -2516,85 +2803,95 @@ '(' Punctuation 'this' Keyword ',' Punctuation -' ' Text +' ' Text.Whitespace 'args' Name.Other ')' Punctuation ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'args' Name.Other '[' Punctuation '0' Literal.Number.Integer ']' Punctuation -'\n\n\n ' Text -'# ------------------------- Object Functions: ----------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# ------------------------- Object Functions: ----------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -"# Retrieve the names of an object's properties.\n" Comment.Single +'\n ' Text.Whitespace +"# Retrieve the names of an object's properties." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.keys: ' Name.Variable +' ' Text.Whitespace +'_.keys' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'range' Name.Other '(' Punctuation '0' Literal.Number.Integer ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'length' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'key' Name.Other -' ' Text +' ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'key' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -"# Retrieve the values of an object's properties.\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# Retrieve the values of an object's properties." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.values: ' Name.Variable +' ' Text.Whitespace +'_.values' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'map' Name.Other '(' Punctuation 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'identity' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Return a sorted list of the function names available in Underscore.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Return a sorted list of the function names available in Underscore.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.functions: ' Name.Variable +' ' Text.Whitespace +'_.functions' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'select' Name.Other @@ -2606,9 +2903,9 @@ 'obj' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(key) ->' Name.Function -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isFunction' Name.Other @@ -2623,58 +2920,64 @@ 'sort' Name.Other '(' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Extend a given object with all of the properties in a source object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Extend a given object with all of the properties in a source object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.extend: ' Name.Variable +' ' Text.Whitespace +'_.extend' Name.Variable +':' Operator +' ' Text.Whitespace '(destination, source) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'for' Keyword -' ' Text +' ' Text.Whitespace 'key' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'val' Name.Other -' ' Text +' ' Text.Whitespace 'of' Keyword -' ' Text +' ' Text.Whitespace 'source' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'destination' Name.Other '[' Punctuation 'key' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace 'val' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'destination' Name.Other -'\n\n\n ' Text -'# Create a (shallow-cloned) duplicate of an object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Create a (shallow-cloned) duplicate of an object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.clone: ' Name.Variable +' ' Text.Whitespace +'_.clone' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'slice' Name.Other '(' Punctuation '0' Literal.Number.Integer ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isArray' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '_' Name.Other '.' Punctuation 'extend' Name.Other @@ -2682,318 +2985,342 @@ '{' Punctuation '}' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'obj' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Invokes interceptor with the obj, and then returns obj.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Invokes interceptor with the obj, and then returns obj.' Comment.Single +'\n' Text.Whitespace -' ' Text -'# The primary purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.\n' Comment.Single +' ' Text.Whitespace +'# The primary purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.tap: ' Name.Variable +' ' Text.Whitespace +'_.tap' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, interceptor) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'interceptor' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -'# Perform a deep comparison to check if two objects are equal.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Perform a deep comparison to check if two objects are equal.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isEqual: ' Name.Variable +' ' Text.Whitespace +'_.isEqual' Name.Variable +':' Operator +' ' Text.Whitespace '(a, b) ->' Name.Function -'\n ' Text -'# Check object identity.\n' Comment.Single +'\n ' Text.Whitespace +'# Check object identity.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other -'\n ' Text -'# Different types?\n' Comment.Single +'\n ' Text.Whitespace +'# Different types?' Comment.Single +'\n' Text.Whitespace -' ' Text -'atype: ' Name.Variable +' ' Text.Whitespace +'atype' Name.Variable +':' Operator +' ' Text.Whitespace 'typeof' Keyword '(' Punctuation 'a' Name.Other ')' Punctuation ';' Punctuation -' ' Text -'btype: ' Name.Variable +' ' Text.Whitespace +'btype' Name.Variable +':' Operator +' ' Text.Whitespace 'typeof' Keyword '(' Punctuation 'b' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'atype' Name.Other -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace 'btype' Name.Other -'\n ' Text -'# Basic equality test (watch out for coercions).\n' Comment.Single +'\n ' Text.Whitespace +'# Basic equality test (watch out for coercions).' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '`' Operator 'a' Name.Other -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '`' Operator -'\n ' Text -'# One is falsy and the other truthy.\n' Comment.Single +'\n ' Text.Whitespace +'# One is falsy and the other truthy.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '!' Operator 'a' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '!' Operator 'b' Name.Other ')' Punctuation -'\n ' Text -'# One of them implements an isEqual()?\n' Comment.Single +'\n ' Text.Whitespace +'# One of them implements an isEqual()?' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'isEqual' Name.Other '(' Punctuation 'b' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'isEqual' Name.Other -'\n ' Text -"# Check dates' integer values.\n" Comment.Single +'\n ' Text.Whitespace +"# Check dates' integer values." Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'getTime' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'getTime' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isDate' Name.Other '(' Punctuation 'a' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isDate' Name.Other '(' Punctuation 'b' Name.Other ')' Punctuation -'\n ' Text -'# Both are NaN?\n' Comment.Single +'\n ' Text.Whitespace +'# Both are NaN?' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isNaN' Name.Builtin '(' Punctuation 'a' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isNaN' Name.Builtin '(' Punctuation 'b' Name.Other ')' Punctuation -'\n ' Text -'# Compare regular expressions.\n' Comment.Single +'\n ' Text.Whitespace +'# Compare regular expressions.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isRegExp' Name.Other '(' Punctuation 'a' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isRegExp' Name.Other '(' Punctuation 'b' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'source' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'source' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -'\n ' Text +'\n ' Text.Whitespace 'a' Name.Other '.' Punctuation 'global' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'global' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -'\n ' Text +'\n ' Text.Whitespace 'a' Name.Other '.' Punctuation 'ignoreCase' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'ignoreCase' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -'\n ' Text +'\n ' Text.Whitespace 'a' Name.Other '.' Punctuation 'multiline' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'multiline' Name.Other -'\n ' Text -"# If a is not an object by this point, we can't handle it.\n" Comment.Single +'\n ' Text.Whitespace +"# If a is not an object by this point, we can't handle it." Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'atype' Name.Other -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String 'object' Literal.String "'" Literal.String -'\n ' Text -'# Check for different array lengths before comparing contents.\n' Comment.Single +'\n ' Text.Whitespace +'# Check for different array lengths before comparing contents.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'a' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other '.' Punctuation 'length' Name.Other ')' Punctuation -'\n ' Text -'# Nothing else worked, deep compare the contents.\n' Comment.Single +'\n ' Text.Whitespace +'# Nothing else worked, deep compare the contents.' Comment.Single +'\n' Text.Whitespace -' ' Text -'aKeys: ' Name.Variable +' ' Text.Whitespace +'aKeys' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'keys' Name.Other @@ -3001,51 +3328,58 @@ 'a' Name.Other ')' Punctuation ';' Punctuation -' ' Text -'bKeys: ' Name.Variable +' ' Text.Whitespace +'bKeys' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'keys' Name.Other '(' Punctuation 'b' Name.Other ')' Punctuation -'\n ' Text -'# Different object sizes?\n' Comment.Single +'\n ' Text.Whitespace +'# Different object sizes?' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant -' ' Text +' ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'aKeys' Name.Other '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace 'isnt' Operator -' ' Text +' ' Text.Whitespace 'bKeys' Name.Other '.' Punctuation 'length' Name.Other -'\n ' Text -'# Recursive comparison of contents.\n' Comment.Single +'\n ' Text.Whitespace +'# Recursive comparison of contents.' Comment.Single +'\n' Text.Whitespace -' ' Text -'# for (var key in a) if (!_.isEqual(a[key], b[key])) return false;\n' Comment.Single +' ' Text.Whitespace +'# for (var key in a) if (!_.isEqual(a[key], b[key])) return false;' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'true' Keyword.Constant -'\n\n\n ' Text -'# Is a given array or object empty?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given array or object empty?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isEmpty: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isEmpty' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'keys' Name.Other @@ -3054,66 +3388,72 @@ ')' Punctuation '.' Punctuation 'length' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace '0' Literal.Number.Integer -'\n\n\n ' Text -'# Is a given value a DOM element?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given value a DOM element?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isElement: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isElement' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'nodeType' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Integer -'\n\n\n ' Text -'# Is a given value an array?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given value an array?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isArray: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isArray' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '!' Operator '!' Operator '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'concat' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'unshift' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Is a given variable an arguments object?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given variable an arguments object?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isArguments: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isArguments' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isNumber' Name.Other @@ -3122,408 +3462,460 @@ '.' Punctuation 'length' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'concat' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -'\n ' Text +'\n ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'substr' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'apply' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'not' Operator -' ' Text +' ' Text.Whitespace 'propertyIsEnumerable' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'obj' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'length' Literal.String "'" Literal.String ')' Punctuation -'\n\n\n ' Text -'# Is the given value a function?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is the given value a function?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isFunction: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isFunction' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '!' Operator '!' Operator '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'constructor' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'call' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'apply' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Is the given value a string?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is the given value a string?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isString: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isString' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '!' Operator '!' Operator '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'charCodeAt' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'substr' Name.Other ')' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Is a given value a number?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given value a number?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isNumber: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isNumber' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace '+' Operator 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace 'toString' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String '[object Number]' Literal.String "'" Literal.String -'\n\n\n ' Text -'# Is a given value a Date?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given value a Date?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isDate: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isDate' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '!' Operator '!' Operator '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'getTimezoneOffset' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'setUTCFullYear' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Is the given value a regular expression?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is the given value a regular expression?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isRegExp: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isRegExp' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '!' Operator '!' Operator '(' Punctuation 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'exec' Name.Other -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'obj' Name.Other '.' Punctuation 'ignoreCase' Name.Other -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace 'obj' Name.Other '.' Punctuation 'ignoreCase' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'false' Keyword.Constant ')' Punctuation ')' Punctuation -'\n\n\n ' Text -'# Is the given value NaN -- this one is interesting. NaN != NaN, and\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is the given value NaN -- this one is interesting. NaN != NaN, and' Comment.Single +'\n' Text.Whitespace -' ' Text -"# isNaN(undefined) == true, so we make sure it's a number first.\n" Comment.Single +' ' Text.Whitespace +"# isNaN(undefined) == true, so we make sure it's a number first." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isNaN: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isNaN' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'isNumber' Name.Other '(' Punctuation 'obj' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'and' Operator -' ' Text +' ' Text.Whitespace 'window' Name.Builtin '.' Punctuation 'isNaN' Name.Builtin '(' Punctuation 'obj' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Is a given value equal to null?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given value equal to null?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isNull: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isNull' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace 'null' Keyword.Constant -'\n\n\n ' Text -'# Is a given variable undefined?\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Is a given variable undefined?' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.isUndefined: ' Name.Variable -' ' Text +' ' Text.Whitespace +'_.isUndefined' Name.Variable +':' Operator +' ' Text.Whitespace '(obj) ->' Name.Function -' ' Text +' ' Text.Whitespace 'typeof' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -' ' Text +' ' Text.Whitespace 'is' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String 'undefined' Literal.String "'" Literal.String -'\n\n\n ' Text -'# -------------------------- Utility Functions: --------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# -------------------------- Utility Functions: --------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -"# Run Underscore.js in noConflict mode, returning the '_' variable to its\n" Comment.Single +'\n ' Text.Whitespace +"# Run Underscore.js in noConflict mode, returning the '_' variable to its" Comment.Single +'\n' Text.Whitespace -' ' Text -'# previous owner. Returns a reference to the Underscore object.\n' Comment.Single +' ' Text.Whitespace +'# previous owner. Returns a reference to the Underscore object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.noConflict: ' Name.Variable +' ' Text.Whitespace +'_.noConflict' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -'\n ' Text -'root._: ' Name.Variable +'\n ' Text.Whitespace +'root._' Name.Variable +':' Operator +' ' Text.Whitespace 'previousUnderscore' Name.Other -'\n ' Text +'\n ' Text.Whitespace 'this' Keyword -'\n\n\n ' Text -'# Keep the identity function around for default iterators.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Keep the identity function around for default iterators.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.identity: ' Name.Variable +' ' Text.Whitespace +'_.identity' Name.Variable +':' Operator +' ' Text.Whitespace '(value) ->' Name.Function -' ' Text +' ' Text.Whitespace 'value' Name.Other -'\n\n\n ' Text -'# Break out of the middle of an iteration.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Break out of the middle of an iteration.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.breakLoop: ' Name.Variable +' ' Text.Whitespace +'_.breakLoop' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -' ' Text +' ' Text.Whitespace 'throw' Keyword -' ' Text +' ' Text.Whitespace 'breaker' Name.Other -'\n\n\n ' Text -'# Generate a unique integer id (unique within the entire client session).\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Generate a unique integer id (unique within the entire client session).' Comment.Single +'\n' Text.Whitespace -' ' Text -'# Useful for temporary DOM ids.\n' Comment.Single +' ' Text.Whitespace +'# Useful for temporary DOM ids.' Comment.Single +'\n' Text.Whitespace -' ' Text -'idCounter: ' Name.Variable +' ' Text.Whitespace +'idCounter' Name.Variable +':' Operator +' ' Text.Whitespace '0' Literal.Number.Integer -'\n ' Text -'_.uniqueId: ' Name.Variable +'\n ' Text.Whitespace +'_.uniqueId' Name.Variable +':' Operator +' ' Text.Whitespace '(prefix) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace '(' Punctuation 'prefix' Name.Other -' ' Text +' ' Text.Whitespace 'or' Operator -' ' Text +' ' Text.Whitespace "'" Literal.String "'" Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator -' ' Text +' ' Text.Whitespace 'idCounter' Name.Other '++' Operator -'\n\n\n ' Text -'# By default, Underscore uses ERB-style template delimiters, change the\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# By default, Underscore uses ERB-style template delimiters, change the' Comment.Single +'\n' Text.Whitespace -' ' Text -'# following template settings to use alternative delimiters.\n' Comment.Single +' ' Text.Whitespace +'# following template settings to use alternative delimiters.' Comment.Single +'\n' Text.Whitespace -' ' Text -'_.templateSettings: ' Name.Variable +' ' Text.Whitespace +'_.templateSettings' Name.Variable +':' Operator +' ' Text.Whitespace '{' Punctuation -'\n ' Text -'start: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'start' Name.Variable +':' Operator +' ' Text.Whitespace "'" Literal.String '<%' Literal.String "'" Literal.String -'\n ' Text -'end: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'end' Name.Variable +':' Operator +' ' Text.Whitespace "'" Literal.String '%>' Literal.String "'" Literal.String -'\n ' Text -'interpolate: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'interpolate' Name.Variable +':' Operator +' ' Text.Whitespace '/<%=(.+?)%>/g' Literal.String.Regex -'\n ' Text +'\n ' Text.Whitespace '}' Punctuation -'\n\n\n ' Text -"# JavaScript templating a-la ERB, pilfered from John Resig's\n" Comment.Single +'\n\n\n ' Text.Whitespace +"# JavaScript templating a-la ERB, pilfered from John Resig's" Comment.Single +'\n' Text.Whitespace -' ' Text -'# "Secrets of the JavaScript Ninja", page 83.\n' Comment.Single +' ' Text.Whitespace +'# "Secrets of the JavaScript Ninja", page 83.' Comment.Single +'\n' Text.Whitespace -' ' Text -"# Single-quotea fix from Rick Strahl's version.\n" Comment.Single +' ' Text.Whitespace +"# Single-quotea fix from Rick Strahl's version." Comment.Single +'\n' Text.Whitespace -' ' Text -'_.template: ' Name.Variable +' ' Text.Whitespace +'_.template' Name.Variable +':' Operator +' ' Text.Whitespace '(str, data) ->' Name.Function -'\n ' Text -'c: ' Name.Variable +'\n ' Text.Whitespace +'c' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'templateSettings' Name.Other -'\n ' Text -'fn: ' Name.Variable +'\n ' Text.Whitespace +'fn' Name.Variable +':' Operator +' ' Text.Whitespace 'new' Keyword -' ' Text +' ' Text.Whitespace 'Function' Name.Builtin -' ' Text +' ' Text.Whitespace "'" Literal.String 'obj' Literal.String "'" Literal.String ',' Punctuation -'\n ' Text +'\n ' Text.Whitespace "'" Literal.String 'var p=[],print=function(){p.push.apply(p,arguments);};' Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace '+' Operator -'\n ' Text +'\n ' Text.Whitespace "'" Literal.String 'with(obj){p.push(' Literal.String "\\'" Literal.String "'" Literal.String -' ' Text +' ' Text.Whitespace '+' Operator -'\n ' Text +'\n ' Text.Whitespace 'str' Name.Other '.' Punctuation 'replace' Name.Other '(' Punctuation '/[\\r\\t\\n]/g' Literal.String.Regex ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String ' ' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'replace' Name.Other '(' Punctuation 'new' Keyword -' ' Text +' ' Text.Whitespace 'RegExp' Name.Builtin '(' Punctuation '"' Literal.String @@ -3559,7 +3951,7 @@ '\\t' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'split' Name.Other '(' Punctuation @@ -3575,7 +3967,7 @@ "'" Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'split' Name.Other '(' Punctuation @@ -3590,7 +3982,7 @@ "'" Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'replace' Name.Other '(' Punctuation @@ -3598,14 +3990,14 @@ '.' Punctuation 'interpolate' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace '"' Literal.String "'" Literal.String ',$1,' Literal.String "'" Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'split' Name.Other '(' Punctuation @@ -3621,7 +4013,7 @@ ');' Literal.String '"' Literal.String ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace '.' Punctuation 'split' Name.Other '(' Punctuation @@ -3637,9 +4029,9 @@ "'" Literal.String '"' Literal.String ')' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator -'\n ' Text +'\n ' Text.Whitespace '"' Literal.String "'" Literal.String ');}return p.join(' Literal.String @@ -3647,94 +4039,111 @@ "'" Literal.String ');' Literal.String '"' Literal.String -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'data' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace 'fn' Name.Other '(' Punctuation 'data' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'fn' Name.Other -'\n\n\n ' Text -'# ------------------------------- Aliases ----------------------------------\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# ------------------------------- Aliases ----------------------------------' Comment.Single +'\n' Text.Whitespace -'\n ' Text -'_.forEach: ' Name.Variable +'\n ' Text.Whitespace +'_.forEach' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -'\n ' Text -'_.foldl: ' Name.Variable -' ' Text -'_.inject: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.foldl' Name.Variable +':' Operator +' ' Text.Whitespace +'_.inject' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'reduce' Name.Other -'\n ' Text -'_.foldr: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.foldr' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'reduceRight' Name.Other -'\n ' Text -'_.filter: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.filter' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'select' Name.Other -'\n ' Text -'_.every: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.every' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'all' Name.Other -'\n ' Text -'_.some: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.some' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'any' Name.Other -'\n ' Text -'_.head: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.head' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'first' Name.Other -'\n ' Text -'_.tail: ' Name.Variable -' ' Text +'\n ' Text.Whitespace +'_.tail' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'rest' Name.Other -'\n ' Text -'_.methods: ' Name.Variable +'\n ' Text.Whitespace +'_.methods' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'functions' Name.Other -'\n\n\n ' Text -'# /*------------------------ Setup the OOP Wrapper: --------------------------*/\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# /*------------------------ Setup the OOP Wrapper: --------------------------*/' Comment.Single +'\n' Text.Whitespace -'\n ' Text -'# Helper function to continue chaining intermediate results.\n' Comment.Single +'\n ' Text.Whitespace +'# Helper function to continue chaining intermediate results.' Comment.Single +'\n' Text.Whitespace -' ' Text -'result: ' Name.Variable +' ' Text.Whitespace +'result' Name.Variable +':' Operator +' ' Text.Whitespace '(obj, chain) ->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace 'chain' Name.Other -' ' Text +' ' Text.Whitespace 'then' Keyword -' ' Text +' ' Text.Whitespace '_' Name.Other '(' Punctuation 'obj' Name.Other @@ -3743,18 +4152,19 @@ 'chain' Name.Other '(' Punctuation ')' Punctuation -' ' Text +' ' Text.Whitespace 'else' Keyword -' ' Text +' ' Text.Whitespace 'obj' Name.Other -'\n\n\n ' Text -'# Add all of the Underscore functions to the wrapper object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Add all of the Underscore functions to the wrapper object.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'functions' Name.Other @@ -3762,15 +4172,17 @@ '_' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(name) ->' Name.Function -'\n ' Text -'method: ' Name.Variable +'\n ' Text.Whitespace +'method' Name.Variable +':' Operator +' ' Text.Whitespace '_' Name.Other '[' Punctuation 'name' Name.Other ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'wrapper' Name.Other '.' Punctuation 'prototype' Name.Other @@ -3778,21 +4190,21 @@ 'name' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace '->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'unshift' Name.Other '.' Punctuation 'call' Name.Other '(' Punctuation 'arguments' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Punctuation '_wrapped' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other '(' Punctuation 'method' Name.Other @@ -3801,70 +4213,73 @@ '(' Punctuation '_' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'arguments' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Punctuation '_chain' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Add all mutator Array functions to the wrapper.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Add all mutator Array functions to the wrapper.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace '[' Punctuation "'" Literal.String 'pop' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'push' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'reverse' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'shift' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'sort' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'splice' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'unshift' Literal.String "'" Literal.String ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(name) ->' Name.Function -'\n ' Text -'method: ' Name.Variable +'\n ' Text.Whitespace +'method' Name.Variable +':' Operator +' ' Text.Whitespace 'Array' Name.Builtin '.' Punctuation 'prototype' Name.Other '[' Punctuation 'name' Name.Other ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'wrapper' Name.Other '.' Punctuation 'prototype' Name.Other @@ -3872,9 +4287,9 @@ 'name' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace '->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'method' Name.Other '.' Punctuation 'apply' Name.Other @@ -3883,56 +4298,59 @@ '.' Punctuation '_wrapped' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'arguments' Name.Other ')' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other '(' Punctuation 'this' Keyword '.' Punctuation '_wrapped' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Punctuation '_chain' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Add all accessor Array functions to the wrapper.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Add all accessor Array functions to the wrapper.' Comment.Single +'\n' Text.Whitespace -' ' Text +' ' Text.Whitespace '_' Name.Other '.' Punctuation 'each' Name.Other -' ' Text +' ' Text.Whitespace '[' Punctuation "'" Literal.String 'concat' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'join' Literal.String "'" Literal.String ',' Punctuation -' ' Text +' ' Text.Whitespace "'" Literal.String 'slice' Literal.String "'" Literal.String ']' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace '(name) ->' Name.Function -'\n ' Text -'method: ' Name.Variable +'\n ' Text.Whitespace +'method' Name.Variable +':' Operator +' ' Text.Whitespace 'Array' Name.Builtin '.' Punctuation 'prototype' Name.Other '[' Punctuation 'name' Name.Other ']' Punctuation -'\n ' Text +'\n ' Text.Whitespace 'wrapper' Name.Other '.' Punctuation 'prototype' Name.Other @@ -3940,9 +4358,9 @@ 'name' Name.Other ']' Punctuation ':' Operator -' ' Text +' ' Text.Whitespace '->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'result' Name.Other '(' Punctuation 'method' Name.Other @@ -3953,36 +4371,44 @@ '.' Punctuation '_wrapped' Name.Other ',' Punctuation -' ' Text +' ' Text.Whitespace 'arguments' Name.Other ')' Punctuation ',' Punctuation -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Punctuation '_chain' Name.Other ')' Punctuation -'\n\n\n ' Text -'# Start chaining a wrapped Underscore object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Start chaining a wrapped Underscore object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'wrapper::chain: ' Name.Variable +' ' Text.Whitespace +'wrapper::chain' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -'\n ' Text +'\n ' Text.Whitespace 'this' Keyword '.' Punctuation -'_chain: ' Name.Variable +'_chain' Name.Variable +':' Operator +' ' Text.Whitespace 'true' Keyword.Constant -'\n ' Text +'\n ' Text.Whitespace 'this' Keyword -'\n\n\n ' Text -'# Extracts the result from a wrapped and chained object.\n' Comment.Single +'\n\n\n ' Text.Whitespace +'# Extracts the result from a wrapped and chained object.' Comment.Single +'\n' Text.Whitespace -' ' Text -'wrapper::value: ' Name.Variable +' ' Text.Whitespace +'wrapper::value' Name.Variable +':' Operator +' ' Text.Whitespace '->' Name.Function -' ' Text +' ' Text.Whitespace 'this' Keyword '.' Punctuation '_wrapped' Name.Other -'\n' Text +'\n' Text.Whitespace |