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
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
Marijn Haverbeke
76be1f8eee
Make Acorn work with AMD modules
...
(Hopefully)
2013-03-17 22:56:49 +01:00
Marijn Haverbeke
0b10aa2256
Add walk.findNodeBefore
2013-02-28 19:27:29 +01:00
Marijn Haverbeke
b1845b51b1
[util/walk] Add findNodeAfter
2013-02-24 21:25:25 +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
Marijn Haverbeke
e95c4cce50
Add walk.findNodeAt utility
2013-01-28 13:00:08 +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
Marijn Haverbeke
cc5971f617
Formatting
2013-01-04 09:37:21 +01:00
krator
5b19196bac
Give true/false/null literals a raw property
...
In the generated ast, "null"/"true"/"false" are "Literal" nodes.
As every "Literal" node has a 'raw' property,
When i am doing something with the ast using python,
the 3 "Literal"s caused some problem.
make the 3 "Literal"s have 'raw' property.
2012-12-24 14:26:03 +01:00
Marijn Haverbeke
f58bb9a480
Use 'self' instead of 'window' in browser, in order to work in a web worker
2012-11-29 10:08:32 +01:00
Marijn Haverbeke
d36c70bbbf
Add missing labels.pop() to allow re-using labels in a block
...
Issue #15
2012-11-22 10:11:00 +01:00
Marijn Haverbeke
5c44c13465
Make sure readInt doesn't try to read past len, if given
...
Issue #15
2012-11-22 10:07:19 +01:00
Marijn Haverbeke
5771c8b4b2
Add missing semicolon() calls to debugger and throw statement parsers
...
Issue #5
2012-11-22 09:48:01 +01:00
Marijn Haverbeke
4229ef792e
Give readToken sub-functions meaningful names
2012-11-20 16:58:57 +01:00
Marijn Haverbeke
905124c291
Assign parenthesized expressions a range that includes the parens
...
This way, composite expressions that they are part of won't get bogus
unsyntactic substrings as their range (i.e. in '(1)+1', the binop expression
would span '1)+1').
Closes #14
2012-11-18 21:17:49 +01:00
Marijn Haverbeke
043386067a
Stop accumulating line comments when trackComments is off
2012-11-05 22:39:22 +01:00
Marijn Haverbeke
b591c41513
Actually make strictSemicolons forbid all semicolon insertion
2012-11-05 22:25:40 +01:00
Marijn Haverbeke
5d83150951
Attach .raw property to literal nodes
2012-11-02 16:35:09 +01:00
Marijn Haverbeke
48bbcd9437
Restore nonasciiwhitespace regexp
...
It won't make any difference except in really strange code.
2012-10-19 10:10:53 +02:00
Alistair Braidwood
b3366233d3
skipLineComment
2012-10-19 10:05:59 +02:00
Alistair Braidwood
b38a98ffd2
skipSpace
2012-10-19 10:04:51 +02:00
Marijn Haverbeke
906a8b8e5b
Simplify an if/switch combo to just a switch
2012-10-19 09:58:08 +02:00
Alistair Braidwood
9bdbbaaf96
isIdentifierChar to numeric
2012-10-19 09:50:08 +02:00
abraidwood
c20cdbf8fc
rearrange isIdentifierStart
2012-10-19 09:47:38 +02:00
Marijn Haverbeke
6b52dc8a84
Disallow newline after throw
...
Closes #11
2012-10-18 15:50:07 +02:00
Marijn Haverbeke
daefc220da
Require a semicolon after do/while
2012-10-17 23:09:15 +02:00