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
Wilfred Hughes
77c641748f
0.55 is released
2024-02-01 08:26:52 +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
c2c2260195
0.20.2
2024-01-31 05:07:05 +07:00
Amaan Qureshi
8804e711fd
chore: format scanner
2024-01-31 05:07:05 +07:00
Amaan Qureshi
248303dac1
fix: include parser.h locally
2024-01-31 04:52:05 +07:00
Amaan Qureshi
bbb7f68ff3
fix: update test
2024-01-31 04:52:05 +07:00
Amaan Qureshi
18772c3342
chore: add new regression tests
2024-01-31 04:52:05 +07:00
Amaan Qureshi
5673011a7c
chore: generate
2024-01-31 04:52:05 +07:00
Amaan Qureshi
111182fb7e
refactor: ensure comments are parsed after automatic semicolons for better trees
2024-01-31 04:52:05 +07:00
Amaan Qureshi
f85369d143
chore: update queries
2024-01-31 04:52:05 +07:00
Amaan Qureshi
672ec1490a
chore: npm/npm is archived, use npm/cli
2024-01-31 04:52:05 +07:00
Amaan Qureshi
04c7d2e899
chore: update tests
2024-01-31 04:52:05 +07:00
Amaan Qureshi
e7d9759baf
fix: don't parse ternary qmarks aggressively; wait for comments to be parsed instead
2024-01-31 04:52:05 +07:00
Amaan Qureshi
d913f22675
fix: allow let as a reserved identifier
2024-01-31 04:52:05 +07:00
Amaan Qureshi
6f80c5b131
fix: allow bare semicolons in classes
2024-01-31 04:52:05 +07:00
Amaan Qureshi
05c0e37852
refactor: sequence expressions shouldn't be recursive
2024-01-31 04:52:05 +07:00
Amaan Qureshi
99522a2492
fix: be more selective about where `import` is allowed
2024-01-31 04:52:05 +07:00
Amaan Qureshi
bb0e10a321
fix: expose string fragments inside template strings
2024-01-31 04:52:05 +07:00
Amaan Qureshi
4f279cc39f
refactor: move parsing html comments to the scanner
2024-01-31 04:52:05 +07:00
Amaan Qureshi
84c57eeb0e
refactor: rename the `function` rule to `function_expression` to avoid collision with the `function` literal
2024-01-31 04:52:05 +07:00
Wilfred Hughes
7fda26d68a
cargo fmt
2024-01-30 21:25:01 +07:00
Wilfred Hughes
29b3119f39
Mention #570 in changelog
2024-01-30 21:24:11 +07:00
Wilfred Hughes
052b3a62a3
Use XML file headers as language detection hints
...
Fixes #630
2024-01-30 21:22:51 +07:00
Wilfred Hughes
5219977d88
Add comment to language detection logic
2024-01-29 21:57:40 +07:00
Wilfred Hughes
de3aeff62f
Merge pull request #627 from gotcha/patch-1
...
ZCML is XML
2024-01-29 08:29:55 +07:00
Godefroid Chapelle
992f9cf11d
ZCML is XML
...
Zope and Plone ZCML (Zope Configuration Markup Language) is XML.
2024-01-29 16:40:48 +07:00
Wilfred Hughes
982f2526fb
Update to latest tree-sitter
...
Benchmarks are unchanged.
Fixes #570
2024-01-28 13:12:06 +07:00
Wilfred Hughes
6760559e6f
Increase MSRV to 1.65
...
See discussion in #570
2024-01-28 12:55:07 +07:00
Wilfred Hughes
73a6a61b27
Add VHDL to changelog
2024-01-28 12:35:11 +07:00
Wilfred Hughes
a3731067b2
Merge pull request #618 from arbrauns/tree-sitter-vhdl
...
Add tree-sitter-vhdl
2024-01-28 12:04:53 +07:00
Wilfred Hughes
8df2fd3823
Merge pull request #619 from arbrauns/manual-new-parser-fix
...
manual: fix instructions for adding new parser
2024-01-28 12:03:44 +07:00
Wilfred Hughes
6c4310e33b
Remove macro from Objective-C sample file so it parses fully
2024-01-28 11:02:58 +07:00
Armin Brauns
c5638750d6
Add tree-sitter-vhdl
2024-01-09 09:23:51 +07:00