Max Brunsfeld
12341dbbc0
0.16.9
2020-07-17 14:23:54 -07:00
Max Brunsfeld
c4fca5f73e
node types: Fix handling of repetitions inside of fields
...
Fixes #676
2020-07-17 14:19:59 -07:00
Max Brunsfeld
f4adf0269a
Propagate dynamic precedence correctly for inlined rules
...
Fixes #683
2020-07-17 09:53:01 -07:00
Max Brunsfeld
4535efce69
query: Prevent dropping of matches when exceeding range maximum
...
Fixes #685
2020-07-17 09:39:06 -07:00
Max Brunsfeld
91a715799e
Accept a paths file to most CLI subcommands
2020-07-14 15:04:39 -07:00
Tuấn-Anh Nguyễn
c2fb0f5229
cli: Add --byte-range flag to query command
2020-07-12 20:47:23 +07:00
Max Brunsfeld
0c2dc4c1e9
Merge pull request #648 from tree-sitter/tagging-improvements
...
Tagging improvements
2020-07-10 13:48:23 -07:00
Max Brunsfeld
e4e785b567
Remove unused flags from tags CLI command
2020-07-10 13:47:56 -07:00
Max Brunsfeld
0bfd47e2e5
Improve error message when failing to run graphviz stuff
...
Fixes #682
2020-07-10 10:13:19 -07:00
Max Brunsfeld
b52f28d6d5
Allow measuring time for tags subcommand
2020-07-09 11:28:07 -07:00
Max Brunsfeld
fef72fb434
Merge branch 'tags-utf16-columns' into tagging-improvements
2020-07-09 10:40:46 -07:00
Max Brunsfeld
255cf0a9cf
tags: Add utf16 column ranges to tags
...
Also, ensure that line ranges contain only valid UTF8.
Co-authored-by: Tim Clem <tclem@github.com>
Co-authored-by: Beka Valentine <bekavalentine@github.com>
2020-07-08 16:13:58 -07:00
Max Brunsfeld
d614c14c2c
tags: Make spans refer to name, not entire def/ref
...
Co-authored-by: Tim Clem <tclem@github.com>
Co-authored-by: Beka Valentine <bekavalentine@github.com>
2020-07-08 12:37:01 -07:00
Jacob Gillespie
86a5dabbcb
Add TypeScript definition for DSL ( #658 )
2020-07-07 08:45:23 -07:00
Max Brunsfeld
0bf2450b4a
Always enforce stack version limit during reductions
...
Fixes #669
2020-07-06 15:58:33 -07:00
Max Brunsfeld
deeeb67a3b
query: Fix handling of alternations under field names ( #661 )
2020-06-24 14:20:56 -07:00
Timothy Clem
f166947abb
Test updates, definition/reference prefix is now required
2020-06-18 15:05:27 -07:00
Timothy Clem
17d26c0d5a
Improved errors
2020-06-18 14:43:27 -07:00
Timothy Clem
b6ae67a610
Fix up CLI, use new syntax_type_name
2020-06-18 14:43:10 -07:00
Timothy Clem
75724698f0
Fix up tests
2020-06-18 14:42:41 -07:00
Timothy Clem
3bcb1f8c94
Assert line trimming
2020-06-18 10:48:33 -07:00
Timothy Clem
f24a952cb4
Minor output changes
2020-06-17 15:54:36 -07:00
Timothy Clem
929bb40adc
Shorten to def/ref
2020-06-17 10:34:55 -07:00
Timothy Clem
80f5c52259
Tests compile
2020-06-16 17:19:35 -07:00
Timothy Clem
d802b37791
Bring back a SyntaxType enum
2020-06-16 17:09:34 -07:00
Timothy Clem
9bf4939b9a
Show if tag is a def/ref in the cli
2020-06-16 16:04:22 -07:00
Max Brunsfeld
a6f71328fe
Avoid whitelist/blacklist terminology in test comments
2020-06-16 09:22:34 -07:00
Max Brunsfeld
519a1369ce
In highlight test, reset included ranges before finding assertions
2020-06-15 10:51:34 -07:00
Max Brunsfeld
0e5ff14976
Requery the parse table when breaking down the parse stack on invalid lookahead ( #636 )
...
* Requery parse table after breaking down parse stack due to invalid lookahead
* Include Ruby parser in randomized test suite
Ruby and PHP are our only two languages that use non-terminal extras.
Adding Ruby uncovered some bugs.
* Print edited source code when running parse --edit w/ debug flag
* Recompute lookahead when breaking down stack on invalid lookahead
* Fix stack summary leak when there are two discontinuities on a stack version
2020-06-04 13:40:04 -07:00
Max Brunsfeld
9a82dcc666
0.16.8
2020-06-01 13:48:37 -07:00
Max Brunsfeld
47d607da8d
Add alternative syntax in queries ( #630 )
...
* Add alternative syntax in queries
* Add tests and tweak error handling for alternatives in queries
2020-06-01 13:23:07 -07:00
Max Brunsfeld
ec870e9e66
Avoid extracting helpers for char sets that are only used once
2020-05-26 16:37:45 -07:00
Max Brunsfeld
911fb7f1b2
Extract helper functions to reduce the code size of the lexer function ( #626 )
...
* Extract helper functions to reduce code size of ts_lex
* Name char set helper functions based on token name
2020-05-26 13:39:11 -07:00
Max Brunsfeld
462c86903f
Improve tree queries' ability to handle large numbers of nested matches ( #624 )
...
* query: Acquire capture lists lazily, allow more concurrent states
* Fix some static analysis warnings
2020-05-18 13:40:24 -07:00
lerencao
37ee7acc9e
[cli]: add an option to no open browser in web-ui command ( #620 )
2020-05-15 23:56:40 -07:00
Алексей Пастухов
38d32c018b
add Rust into languages list for corpus tests ( #619 )
2020-05-15 16:02:39 -07:00
Max Brunsfeld
97018168d3
0.16.7
2020-05-14 10:52:21 -07:00
Max Brunsfeld
9d182bb078
node-types: Fix bug w/ required property when multiple rules aliased as same
2020-05-14 10:51:18 -07:00
Max Brunsfeld
b66d149b74
Fix inconsistent whitespace after '{' in generated parser
2020-05-13 15:56:49 -07:00
Max Brunsfeld
40993195b8
Fix wasm tests on CI ( #616 )
...
* wasm: Improve error message on missing language symbol
* Fix source file existence checks in build-wasm command
2020-05-13 15:14:43 -07:00
Max Brunsfeld
2934e219cf
Fix build-wasm command
2020-05-12 16:56:21 -07:00
Max Brunsfeld
862b56dfe1
0.16.6
2020-05-12 16:22:44 -07:00
Max Brunsfeld
cdc973866f
Fix build-wasm command on latest emscripten
2020-05-12 15:42:11 -07:00
Max Brunsfeld
85c998d572
Change the wildcard syntax in tree queries
...
1. Use '_' instead of '*'.
2. Add '*' as a postfix operator for zero-or-more repetitions
Signed-off-by: Patrick Thomson <patrickt@github.com>
2020-05-11 13:04:04 -07:00
Max Brunsfeld
40262483a9
Change query syntax for predicates
...
Signed-off-by: Patrick Thomson <patrickt@github.com>
2020-05-11 12:35:51 -07:00
Max Brunsfeld
b14f564550
Add a test for nested optionals in queries
2020-05-11 10:42:48 -07:00
Max Brunsfeld
9c0535cea6
Fix logic for aborting failed matches
2020-05-08 14:15:25 -07:00
Max Brunsfeld
b47c170c75
Query: fix bugs and add tests for top-level and nested repetitions
2020-05-08 12:10:01 -07:00
Max Brunsfeld
3ad71625dd
Fix query bugs, expand and clean up query tests
2020-05-07 14:22:15 -07:00
Max Brunsfeld
3456a21f0d
Start work on restructuring query implementation to deal w/ optionals and repeats better
2020-05-07 12:41:25 -07:00