aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2006-10-27 01:19:27 +0000
committerYehuda Katz <wycats@gmail.com>2006-10-27 01:19:27 +0000
commit440d512edd1c13164395859dffc792c2c32c3006 (patch)
treeed5363aa6e55a942b463f3aef4b8d980693b6b2d /build
parent3980dc92955a62bdfeb9f3b0572bfe64155a125d (diff)
downloadjquery-440d512edd1c13164395859dffc792c2c32c3006.tar.gz
jquery-440d512edd1c13164395859dffc792c2c32c3006.zip
Updates to the parsing engine
Diffstat (limited to 'build')
-rw-r--r--build/js/parse.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/build/js/parse.js b/build/js/parse.js
index 498361d71..211fe6ce0 100644
--- a/build/js/parse.js
+++ b/build/js/parse.js
@@ -5,7 +5,7 @@ function parse( f ) {
while ( bm = blockMatch.exec(f) ) {
block = bm[1].replace(/^\s*\* ?/mg,"") + "!!!";
- var ret = { params: [], examples: [], tests: [] };
+ var ret = { params: [], examples: [], tests: [], options: [] };
while ( m = paramMatch.exec( block ) ) {
block = block.replace( paramMatch, "" );
@@ -25,12 +25,11 @@ function parse( f ) {
return ret;
})*/ || 1;
- if ( n == 'param' || n == 'any' ) {
+ if ( n == 'param' || n == 'option' ) {
var args = v.split(/\s+/);
v = args.slice( 2, args.length );
v = { type: args[0], name: args[1], desc: v.join(' ') };
- if ( n == 'any' ) v.any = 1;
- n = "params";
+ n = n + "s";
} else if ( n == 'example' ) {
v = { code: v };
n = "examples";