Nimrod
679d1ce65a
Impl PartialEq
2024-02-14 16:13:08 +07:00
Nimrod
9f8d79bb7f
Allow JSON output to respect skip-unchanged
2024-02-14 16:08:40 +07:00
Wilfred Hughes
3490aea9ec
Document how to update existing parsers
2024-02-13 08:45:45 +07:00
Amaan Qureshi
25ca2718aa
0.20.8
2024-02-13 11:43:23 +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
Lewis Russell
c706154d29
fix: allow function definitions to contain preproc attributes
...
Specifically for Neovim which contains code like:
```c
Dictionary nvim_eval_statusline(String str, Dict(eval_statusline) *opts, Arena *arena, Error *err)
FUNC_API_SINCE(8) FUNC_API_FAST
{
...
}
```
2024-02-13 11:25:05 +07:00
Lewis Russell
c325574f64
fix: improve concatenated_string
...
Now allows `<string> <identifier> ...` forms of concatenations.
2024-02-13 10:46:29 +07:00
Panagiotis Koutsourakis
67ada1ccd4
Add support for Scheme
2024-02-12 10:20:57 +07:00
Panagiotis Koutsourakis
1dc45d84c6
Add 'vendored_parsers/tree-sitter-scheme/' from commit '85b6188fb77c03dfb01d13e58e2844450506860c'
...
git-subtree-dir: vendored_parsers/tree-sitter-scheme
git-subtree-mainline: 3476a68efb
git-subtree-split: 85b6188fb7
2024-02-12 10:19:44 +07:00
ObserverOfTime
ef61cb57bd
chore(scanner): formatting improvements
2024-02-10 20:08:05 +07:00
ganezdragon
cb46cd54fc
converting scanner.cc to scanner.c
2024-02-10 15:20:59 +07:00
ganezdragon
222053dfd8
converting scanner.cc to scanner.c
2024-02-10 15:20:46 +07:00
ganezdragon
7305b7b4c0
some electron building related changes
2024-02-10 15:20:17 +07:00
Amaan Qureshi
51da29228e
0.20.4
2024-02-09 11:01:17 +07:00
Rhys Botfield
55b9630069
Add extra PHP file extensions to the language guesser.
2024-02-09 14:43:20 +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
Evan Richter
d106c979ee
add smali language support
2024-02-01 15:41:14 +07:00
Evan Richter
6ae210999c
Add 'vendored_parsers/tree-sitter-smali/' from commit '5ae51e15c4d1ac93cba6127caf3d1f0a072c140c'
...
git-subtree-dir: vendored_parsers/tree-sitter-smali
git-subtree-mainline: 77c641748f
git-subtree-split: 5ae51e15c4
2024-02-01 14:35:46 +07:00
Amaan Qureshi
2e4d27f772
fix: hide aliased rule
2024-02-01 14:02:46 +07:00
Karl Hiner
a0d90b1637
chore(deps): add node-gyp to dev dependencies
2024-02-01 13:49:14 +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