xixixao
bc975e556e
Prevent loop collection in endAllImplicitCalls
2013-12-05 21:53:42 +00:00
Marc Häfner
26200f4640
Improve HEREDOC regexp
...
* Exclude trailing blank line from the match group
* Fix backslash handling
2013-11-28 16:46:00 +01:00
Marc Häfner
13f205404c
Merge pull request #3261 from xixixao/issue1273
...
Fix #1273 , Handle backslashes at the end of heredocs
2013-11-28 07:32:20 -08:00
xixixao
5e4cca90a3
Fix #3264 , missing leading whitespace before interpolation in heredoc
2013-11-27 20:53:20 +00:00
xixixao
a61b6ee925
Fixed leading whitespace before interpolation in simple strings
2013-11-27 20:29:45 +00:00
xixixao
ee9febe399
Handle nested calls and function oneliners when chaining
2013-11-27 04:57:44 +00:00
xixixao
15a70f863c
Implemented method call chaining
2013-11-27 03:41:52 +00:00
xixixao
42aa8d256c
Handle backslashes at the end of heredocs
2013-11-26 19:29:13 +00:00
Marc Häfner
873ed071d4
Fixes #3259 -- Use placeholders when adding params to scope
...
Don't register nested variables of complex parameters as parameters of the compiled function. Use the computed placeholder name instead.
2013-11-26 14:23:20 +01:00
xixixao
35d327a304
Escape newlines in heredocs with backslashes
2013-11-24 18:37:11 +00:00
Marc Häfner
52a54a7681
Fix and simplify management of sources in CLI
...
* Move all source path filtering to `compilePath`
* Restrict modification of `sources` to
* `compilePath` for adding
* `removeSource` for removing
* Don't add unfiltered paths to `sources` (and remove them later on)
2013-11-23 07:54:35 +01:00
Marc Häfner
1fe28c1fc9
Simplify and rename unwatchDir (to removeSourceDir)
2013-11-23 06:55:57 +01:00
Marc Häfner
89efd05a3f
Make timeout callback in watchDir synchronous
2013-11-23 06:49:41 +01:00
Marc Häfner
caafafcf4d
Simplify removeSource and make it synchronous
2013-11-23 06:49:13 +01:00
Marc Häfner
81d8224b9a
Remove path.exists* as fallback for fs.exists*
2013-11-23 06:42:39 +01:00
Marc Häfner
22c85e216f
Use absolute paths in CLI
...
* Use absolute paths for source files and target paths
* Memorize and explicitly check for watched directories
* Make path comparison and construction more precise and clear
* Remove now unnecessary check for special relative paths
2013-11-23 06:41:08 +01:00
xixixao
130899a39f
Fix multiple escaped backslashes in literal strings
2013-11-19 23:44:39 +00:00
Jeremy Ashkenas
6847400ccb
Merge pull request #3246 from xixixao/issue3229
...
Implements #3229 - Changed multiline string literals
2013-11-18 16:42:10 -08:00
xixixao
1102567b0c
Handle escaped backslashes
2013-11-19 00:04:17 +00:00
xixixao
073d025fac
Better method name and fixed regexps for IE
2013-11-18 15:13:40 +00:00
xixixao
efe8c68c75
Changed multiline string literals
2013-11-18 04:32:15 +00:00
Jeremy Ashkenas
fcc88ca472
Revert "add: Stat polling support while fs.watch doesn't work."
...
This reverts commit 2853e718f2 .
2013-11-15 14:26:16 -05:00
Jeremy Ashkenas
187ebd0374
Revert "mov: Change the option name --polling to --watch-polling, and only leaves the long option name."
...
This reverts commit 08f6c65c3b .
2013-11-15 14:26:05 -05:00
Jeremy Ashkenas
c4999efda7
Revert "fix: opts.polling changed to opts[watch-polling]"
...
This reverts commit 52789f5b19 .
2013-11-15 14:25:55 -05:00
Jeremy Ashkenas
b6231e50c3
Merge pull request #3212 from ysmood/issue3210
...
add: Stat polling support while `fs.watch` doesn't work.
2013-11-15 11:09:50 -08:00
Marc Häfner
592aa33577
Fixes #2367 -- super in for-loop
2013-11-15 06:35:04 +01:00
Marc Häfner
544c99a9ad
Fix error location for illegal pure statements
2013-11-15 05:37:34 +01:00
Marc Häfner
aea0f2533b
Fixes #3232 -- Tag all class properties static
...
(and remove duplicate `context` assigment)
2013-11-15 03:44:26 +01:00
Marc Häfner
138c25fe5f
Cleanup and extend METHOD_DEF
...
* Fixes #2949 : Detect reserved names (not only for instance methods)
* Don't assign names which might result in incorrect `super` calls
2013-11-12 16:53:09 +01:00
Marc Häfner
96ae98fade
Fixes #3087 -- Use fs.*Sync for CLI compilation
...
* Make `compilePath` synchronous
* Remove unused variable
2013-11-10 08:36:29 +01:00
xixixao
0dada3dd27
Remove unnecessary type conversions to Number
2013-11-10 00:13:52 +00:00
xixixao
849c8e8ef4
Remove unnecessary existential check
2013-11-10 00:13:14 +00:00
Marc Häfner
d41d87a874
Avoid unnecessary wrapping of some bound functions
2013-11-03 03:14:13 +01:00
Marc Häfner
5d13d14de9
Closes #3008 -- Fix scope of constructor reference
...
* Make scope of `Code` nodes accessible (prior to `compileNode`)
* Use correct scope for reference of external constructor.
* Remove unreachable code.
2013-11-01 01:13:10 +01:00
Marc Häfner
1df8abf1cb
Refactor closure compilation
...
* Break up `Closure` and merge `Closure.wrap` into `Base.compileClosure`
* Construct class closure directly in `Class.compileNode`
* Reuse `isLiteralArguments` in `Range.compileArray`
* Move all helpers to bottom of file
* Add test for #3063
2013-10-31 23:25:11 +01:00
Marc Häfner
091bc56a96
Code cleanup in Class
...
* Don't insert unnecessary `_ref` (in the wrong scope)
* Improve code prettiness. (Reverts most of 903e9c99 )
2013-10-29 00:01:20 +01:00
Yad Smood
52789f5b19
fix: opts.polling changed to opts[watch-polling]
2013-10-27 01:04:03 +08:00
Marc Häfner
9ba1d41ec8
Fix: __extends helper above directive prologue
2013-10-26 06:54:54 +02:00
Marc Häfner
0d662c3ad2
Missing parentheses
2013-10-24 00:43:29 +02:00
Marc Häfner
fa76e2dd21
Escapable linebreaks in heregexes
2013-10-24 00:36:46 +02:00
Yad Smood
08f6c65c3b
mov: Change the option name --polling to --watch-polling, and only leaves the long option name.
...
opt: Optimize the comment of the `--watch-polling` option.
2013-10-23 00:52:40 +08:00
Marc Häfner
91ac3fa031
Escaped whitespace and slashes in Heregexes
...
* Resolves #3059 : Don't remove escaped whitespace.
* Fixes #2238 : Prevent escaping slashes that are already escaped.
* Fix detection of end of heregex with escaped slashes.
2013-10-22 18:08:17 +02:00
Yad Smood
2853e718f2
add: Stat polling support while fs.watch doesn't work.
...
Add a new cli option: -g --polling [SPAN]
If state polling mode is enabled, use it.
Else use the native api.
This is useful while watching remote directory.
Such as the `fs.watch` won't catch the SMB server's file change event.
2013-10-21 15:26:20 +08:00
Jeremy Ashkenas
c22707cd53
Fixes #2941 -- don't destroy extensionless filenames for --join
2013-10-20 19:09:55 -03:00
Jeremy Ashkenas
351c875576
merged in stricter noncallables
2013-10-20 18:49:30 -03:00
Jeremy Ashkenas
35b64d7f18
Merge pull request #3211 from marchaefner/issue2181
...
Fix compilation for conditional assignment
2013-10-20 14:16:38 -07:00
Jeremy Ashkenas
db87d817e8
Merge pull request #3012 from imcotton/parallel-loading
...
Script loading parallelized in browser
2013-10-20 14:10:40 -07:00
Marc Häfner
4cc2c305a4
Fixes #2181 -- conditional assignment as subexpression
...
* Parenthesize compilation of `||=` and `&&=` (when needed).
* Fix variable caching for `?=`
2013-10-20 22:59:01 +02:00
Jeremy Ashkenas
a5513c45d0
Fixes #3047 -- Fixes module.paths when running directly with no explicit passed-in files.
2013-10-20 17:50:13 -03:00
Jeremy Ashkenas
c820e0241e
Fixes #3053 - error for mismatched own/for-in without an index.
2013-10-20 17:40:50 -03:00