@@ -27,7 +27,8 @@ function preprocess(inFilename, outFilename, defines) {
27
27
}
28
28
return null ;
29
29
}
30
- var writeLine = typeof outFilename === 'function' ? outFilename : function ( line ) {
30
+ var writeLine = typeof outFilename === 'function' ? outFilename :
31
+ function ( line ) {
31
32
out += line + '\n' ;
32
33
}
33
34
function include ( file ) {
@@ -47,7 +48,8 @@ function preprocess(inFilename, outFilename, defines) {
47
48
}
48
49
49
50
var s , state = 0 , stack = [ ] ;
50
- var control = / ^ (?: \/ \/ | < ! - - ) \s * # ( i f | e l s e | e n d i f | e x p a n d | i n c l u d e ) (?: \s + ( .* ?) (?: - - > ) ? $ ) ? / ;
51
+ var control =
52
+ / ^ (?: \/ \/ | < ! - - ) \s * # ( i f | e l s e | e n d i f | e x p a n d | i n c l u d e ) (?: \s + ( .* ?) (?: - - > ) ? $ ) ? / ;
51
53
var lineNumber = 0 ;
52
54
while ( ( s = readLine ( ) ) !== null ) {
53
55
++ lineNumber ;
@@ -82,8 +84,8 @@ function preprocess(inFilename, outFilename, defines) {
82
84
} else {
83
85
if ( state === 0 ) {
84
86
writeLine ( s ) ;
85
- } else if ( state === 3 ) {
86
- writeLine ( s . replace ( / ^ \/ \/ | ^ < ! - - | - - > / g, " " ) ) ;
87
+ } else if ( state === 3 ) {
88
+ writeLine ( s . replace ( / ^ \/ \/ | ^ < ! - - | - - > / g, ' ' ) ) ;
87
89
}
88
90
}
89
91
}
@@ -96,11 +98,11 @@ exports.preprocess = preprocess;
96
98
97
99
/**
98
100
* Simplifies common build steps.
99
- * @param setup
101
+ * @param { object } setup
100
102
* .defines defines for preprocessors
101
103
* .copy array of arrays of source and destination pairs of files to copy
102
104
* .preprocess array of arrays of source and destination pairs of files
103
- * run through preprocessor
105
+ * run through preprocessor.
104
106
*/
105
107
function build ( setup ) {
106
108
var defines = setup . defines ;
0 commit comments