Wilfred Hughes
e52849ebba
Merge commit '9fa49ff3315987f715ce5666ff979a7742fa8a98'
2024-02-15 08:54:57 +07:00
Wilfred Hughes
bf047030d2
Add a unit tests that validates that all language configs are valid
2024-02-15 08:47:58 +07:00
Wilfred Hughes
e70224bb22
Update regression tests for new JS/TS parsers
2024-02-15 08:30:57 +07:00
Wilfred Hughes
3490aea9ec
Document how to update existing parsers
2024-02-13 08:45:45 +07:00
Wilfred Hughes
58536b9426
Merge commit '7db8390a16a2cae317f4f4423a7b642cd4cad8c9'
...
Fixes #515
2024-02-13 08:38:53 +07:00
Wilfred Hughes
a721bef7a7
Merge commit '098bd31b7f838a31cce08db4091e989ea42f3ef6'
2024-02-13 08:36:21 +07:00
Wilfred Hughes
3476a68efb
Simplify description of manual
2024-02-08 08:47:33 +07:00
Wilfred Hughes
cd65d48619
Silence a clippy warning
2024-02-08 08:40:47 +07:00
Wilfred Hughes
4146067be1
Prefer implementing Display over a custom .display() method
2024-02-08 08:34:48 +07:00
Amaan Qureshi
098bd31b7f
chore: generate
2024-02-07 12:04:40 +07:00
Amaan Qureshi
a8e147cc74
chore: update tests
2024-02-07 12:04:40 +07:00
Amaan Qureshi
4337e362f3
fix: do statements can have semicolons
2024-02-07 12:04:40 +07:00
Amaan Qureshi
496d237deb
fix: give ending regex `/` a higher lexical precedence
2024-02-07 12:04:40 +07:00
Amaan Qureshi
aa186dc423
fix: don't parse html comments inside regexes
2024-02-07 09:10:54 +07:00
Wilfred Hughes
6cc1a5f3e3
Add 'hunk' to the glossary
2024-02-06 09:01:25 +07:00
Amaan Qureshi
24b9885a21
fix: tweak template literal injection
2024-02-02 08:59:25 +07:00
Yuya Nishihara
9fa49ff331
regenerate
2024-02-02 22:16:55 +07:00
Yuya Nishihara
f0b7903080
merge with dev
2024-02-02 22:15:54 +07:00
Yuya Nishihara
56e49d4560
bump tree-sitter-typescript to 0.20.5
...
Also switched to version number to follow the upstream decision. We still
specify the exact version because our grammar depends heavily on the upstream
implementation detail.
Closes #7
2024-02-02 21:55:54 +07:00
Yuya Nishihara
bd9b752534
add test of multi-line string literal
2024-02-02 21:52:51 +07:00
Yuya Nishihara
65a11be26d
define our set of reserved identifiers to get around "new {}" conflicts
2024-02-02 21:52:51 +07:00
Yuya Nishihara
e14039d559
extend reserved identifiers test to include various property name positions
2024-02-02 18:52:25 +07:00
Wilfred Hughes
77c641748f
0.55 is released
2024-02-01 08:26:52 +07:00
Amaan Qureshi
7db8390a16
0.20.5
2024-01-31 21:03:46 +07:00
Amaan Qureshi
ab41b8c89a
chore: generate
2024-01-31 21:03:16 +07:00
Amaan Qureshi
e281f36ee4
feat: add readonly to reserved identifiers
2024-01-31 21:02:02 +07:00
Amaan Qureshi
c96c095f60
chore: update tests
2024-01-31 21:02:02 +07:00
Amaan Qureshi
1da16a789c
chore: update javascript grammar
2024-01-31 20:58:02 +07:00
Amaan Qureshi
148910e774
fix: format scanner and don't bother parsing during error recovery
2024-01-31 20:57:10 +07:00
Amaan Qureshi
6d84193ae2
0.20.3
2024-01-31 20:50:13 +07:00
Amaan Qureshi
0f3ea7d323
chore: generate
2024-01-31 20:50:13 +07:00
Amaan Qureshi
fbe6e74b48
fix: windows newline escapes
2024-01-31 20:50:13 +07:00
Amaan Qureshi
07e77af2cf
chore: don't greedily parse automatic semis if an `=` is present
2024-01-31 20:50:13 +07:00
Mark Skelton
b454f16298
feat: add support for import attributes
2024-01-31 20:50:13 +07:00
Julian Rosse
1280c10eee
feat: add field names to nested_identifier rule
2024-01-31 20:50:13 +07:00
Calum Smith
b16c69a70b
feat: support HTML entities in JSX text/attributes
...
JSX text and attributes support HTML character references (a.k.a.
entities), and don't support ECMAScript string escape sequences.
Although the [spec] calls it "historical" and threatens to change it,
it _is_ in the spec, and the spec is pretty stable at this point.
In changing this, I landed back on an idea that @maxbrunsfeld suggested
in a [PR review] some time ago: having separate `string` and
`jsx_string` nodes, and aliasing `jsx_string` to `string` for consumers'
convenience. At that time, having two different node types was deemed
unnecessary, but this adds a second, more substantive difference between
the two, so I've brought the idea back, and stopped allowing invalid
newlines in JS string literals, which is invalid in both JS and TS.
[spec]: https://facebook.github.io/jsx/#sec-jsx-string-characters
[PR review]: https://github.com/tree-sitter/tree-sitter-javascript/pull/140#discussion_r503399344
2024-01-31 20:50:13 +07:00
Amaan Qureshi
eb6b845dee
0.20.4
2024-01-31 10:42:05 +07:00
Amaan Qureshi
80d92e6900
chore: add and apply eslint formatting
2024-01-31 10:39:38 +07:00
Amaan Qureshi
3e9eadc546
chore: update manifests, actions and docs
2024-01-31 10:39:38 +07:00
Amaan Qureshi
8ea2f2e83b
chore: generate
2024-01-31 10:39:38 +07:00
Amaan Qureshi
ad02034a1c
chore(deps): use tree-sitter-javascript@0.20.2
2024-01-31 10:39:38 +07:00
Amaan Qureshi
6d567ef05d
chore(script): update repos
2024-01-31 10:39:38 +07:00
Amaan Qureshi
e1320febcc
feat: allow an override modifier in abstract method signatures
2024-01-31 10:39:38 +07:00
Amaan Qureshi
b5f38c773c
feat: allow new as a reserved keyword
2024-01-31 10:39:38 +07:00
Amaan Qureshi
9639934418
chore: allow semis anywhere in class bodies
2024-01-31 10:39:38 +07:00
Amaan Qureshi
d59b29d600
chore: tidying
2024-01-31 10:39:38 +07:00
Amaan Qureshi
d63fbd4be8
chore: allow import in call expressions like js
2024-01-31 10:39:38 +07:00
Amaan Qureshi
8106351fbf
fix: allow type queries in type annotations and type arguments in
...
special scenarios
2024-01-31 10:39:38 +07:00
Amaan Qureshi
a4d30322c6
chore: update tests
2024-01-31 10:39:38 +07:00
Amaan Qureshi
52f79e4c1d
fix: port javascript scanner changes
2024-01-31 10:39:38 +07:00