Marijn Haverbeke
987fb51feb
Bump version number post-0.4.0
2013-10-10 10:41:19 +02:00
Marijn Haverbeke
1ed25992a7
Mark release 0.4
2013-10-10 10:40:31 +02:00
Aparajita Fishman
389c9b225b
Fixed: tokLineStart and tokCurLine have no meaning if options.locations is false.
...
Everywhere else (except one place which is a bug) those variables only appear within an `if (options.locations)` block.
2013-10-10 09:59:16 +02:00
Marijn Haverbeke
b7972ad95c
Remove invalid of tokLineStart
...
This is only tracked when locations are on, so it can't be used
unconditionally.
Closes #71
2013-10-10 09:58:23 +02:00
Aparajita Fishman
6fd79e50fb
Fixed: skipSpace did not consider 8232 and 8233 as eol, but elsewhere it was.
...
Both readString and skipLineComment considered 8232/8233 as eol, but skipSpace itself would not increment the line counters if they were found.
Previously 8232/8233 were listed in nonASCIIwhitespace, but since that is only used within skipSpace and those values are checked separately, they could be removed from nonASCIIwhitespace.
2013-10-08 16:33:40 +02:00
Marijn Haverbeke
22c3161b6e
Fix wrong end position for VariableDeclaration nodes
...
It should include the semicolon.
Closes #67
2013-10-02 20:39:51 +02:00
Aparajita Fishman
b7417cec8c
Just want to be a little clearer what is happening to the node var declared earlier.
2013-10-01 17:33:01 +02:00
Marijn Haverbeke
83bfd6c536
Different approach to working around html comment issue
2013-09-11 12:23:25 +02:00
Marijn Haverbeke
36d001a4be
Work around docco leaving in a <!-- comment start
...
Closes #66
2013-09-09 22:10:24 +02:00
Martin Carlberg
ba8da57d16
Use correct paragraph separator for newline
...
0x2089(8329) is Subscript nine
0x2028(8232) is Line separator
0x2029(8233) is Paragraph separator
2013-09-09 11:35:33 +02:00
Marijn Haverbeke
b998d5e22d
Add support for bizarro <!-- and --> behavior
...
Issue #62
2013-09-06 10:52:04 +02:00
Aparajita Fishman
411b29791b
Formatting
...
Just being consistent.
In every other place where a between comparison is done, the lower limit is on the left. It's a whole lot easier to see it's a between comparison when the limits are in order.
2013-09-05 10:33:03 +02:00
Marijn Haverbeke
c152be4a2e
Improve error message for ++/re/
...
Closes #54
2013-08-28 16:22:30 +02:00
Marijn Haverbeke
6659f7a033
Fix special case to handle regexps that start with =
...
Closes #55
2013-08-28 10:35:21 +02:00
Marijn Haverbeke
6113324cd2
Fix bug with parsing slash after operator-keyword property
...
Closes #53
2013-08-25 15:01:20 +02:00
Jürg Lehni
097b4162da
Pass on 'this' as root scope, for better inclusion of Acorn inside Paper.js
...
Use same approach as Esprima.
2013-07-26 08:59:07 +02:00
Jiaxing Wang
a84e21e0ff
Line number start from 1 after getToken.jumpTo()
2013-07-11 12:28:58 +02:00
Jiaxing Wang
16b54e0698
parseMaybeUnary() doesn't need parameter @noIn
2013-07-11 08:20:05 +02:00
Jiaxing Wang
567f3ca32a
Remove redundant if conditions that are tested above
2013-07-11 08:20:04 +02:00
Marijn Haverbeke
328d0e514c
Linting
2013-07-08 09:07:10 +02:00
Marijn Haverbeke
d3b9eb177a
Always attach a guardedHandlers property to TryStatements
...
Closes #48
2013-07-08 09:03:23 +02:00
Marijn Haverbeke
67c48229b9
Bump version number post-0.3.1
2013-06-11 12:44:35 +02:00
Marijn Haverbeke
d2673d465a
Release 0.3.1 to fix release-making-script screwup in 0.3.0
2013-06-11 12:43:56 +02:00
Marijn Haverbeke
7e248c7e3b
Mark release 0.3.0
2013-06-11 12:41:03 +02:00
Marijn Haverbeke
3ca3aa5a25
Run a lint pass, clean up lots of small issues
2013-06-10 16:52:22 +02:00
Marijn Haverbeke
6fe123947b
Prefix keywords with underscore in tokTypes object
2013-06-10 15:47:29 +02:00
Marijn Haverbeke
adf16e33c0
Don't assume options object has a hasOwnProperty method
...
Closes #43
2013-06-08 20:36:44 +02:00
Marijn Haverbeke
38f0e80547
Include diacritical combining marks in identifier character set
...
Closes marijn/tern#157
2013-05-21 09:07:50 +02:00
Marijn Haverbeke
4d8eeabf52
In browser loader, refer to global object as 'this', not 'self'
...
Closes #41
2013-05-08 15:16:06 +02:00
Marijn Haverbeke
df763df61b
Bump version number post-0.2
2013-05-03 11:54:04 +02:00
Marijn Haverbeke
4146605738
Mark version 0.2.0
2013-05-03 11:52:42 +02:00
Marijn Haverbeke
30b399ece7
Export isIdentifierChar and isIdentifierStart
2013-04-24 07:44:11 +02:00
Marijn Haverbeke
62bc3641af
Use a single .handler property on TryStatements
...
As the wiki page for the spec currently seems to prescribe.
2013-04-02 09:30:35 +02:00
Marijn Haverbeke
54e78b7035
Properly back up line state when re-reading a token on strict mode
...
Issue #38
2013-03-25 15:10:55 +01:00
Oskar Schöldström
a8a24f538b
Fix \v being treated as v in IE < 9
...
IE < 9 treats '\v' as 'v' instead of a vertical tab ('\u000b').
Read more: http://mathiasbynens.be/notes/javascript-escapes
2013-03-23 19:18:28 +01:00
Marijn Haverbeke
76be1f8eee
Make Acorn work with AMD modules
...
(Hopefully)
2013-03-17 22:56:49 +01:00
Marijn Haverbeke
38179fd855
Fix node boundaries for unexpected regular expressions
...
Closes #33
2013-02-28 19:28:20 +01:00
Marijn Haverbeke
9a55d60324
Move back to regular string accumulation in readString
...
The apply call is a stack overflow hazard.
Closes #31
2013-02-24 21:26:09 +01:00
Marijn Haverbeke
006d5f1c04
Bump version post-0.1
2013-02-14 10:02:27 +01:00
Marijn Haverbeke
c108741d07
Mark release 0.1
2013-02-14 10:00:19 +01:00
Alistair Braidwood
0632b36c94
Improve options.locations performance by tracking newlines rather than finding them
2013-01-30 17:30:38 +01:00
Marijn Haverbeke
87a6a5a8cd
Clean up readNumber, fix parsing of '2.+2'
...
Issue #9
2013-01-30 16:38:31 +01:00
keeyipchan
44f7aff2b7
Add testAssert() for arbitrary tests; fix skinLineComments() passing off-by-1 character to onComment(slice(.., end))
2013-01-27 10:09:06 +01:00
Marijn Haverbeke
965166cdfd
Small fixes noticed while going over the when writing loose parser
2013-01-16 16:47:21 +01:00
Marijn Haverbeke
4d2d8408de
Export the tokenizer
2013-01-16 12:46:26 +01:00
Marijn Haverbeke
c2dd92fec0
Attach position information to errors
2013-01-16 12:20:19 +01:00
Marijn Haverbeke
3c2bd590da
Fix regexp detection after void/typeof/instanceof/delete
2013-01-15 15:58:16 +01:00
Marijn Haverbeke
8104257495
Bump version to 0.0.2
2013-01-13 22:05:46 +01:00
Marijn Haverbeke
cade51347a
Remove trackComments, add onComment option
...
trackComments was too obscure and complicated, and not all that useful.
2013-01-13 22:04:45 +01:00
Martin Carlberg
5e4ea00f3c
Unnecessary 'if' as we already know 'ch !== 92'
2013-01-09 10:13:26 +01:00