Commit graph

3102 commits

Author SHA1 Message Date
Max Brunsfeld
1ae5cbc851 query: Handle #not-match? in rust, wasm bindings 2020-07-24 12:15:23 -07:00
Max Brunsfeld
32099050d6 node_types: Fix panic when field is associated with a hidden token
Fixes #695
2020-07-24 09:26:56 -07:00
Max Brunsfeld
de2b71d465 Fix query bug when max permutations are exceeded 2020-07-23 16:05:50 -07:00
Max Brunsfeld
ba70927f57 tags: Skip tags with a parse error inside the name 2020-07-20 16:47:07 -07:00
Max Brunsfeld
1b8426bb65
Merge pull request #692 from ubolonton/query-dot-predicate
Add '.' as a valid start of a query predicate, in addition to '#'
2020-07-19 14:25:56 -07:00
Tuấn-Anh Nguyễn
740d864e67 Add '.' as a valid start of a predicate, in addition to '#'
See https://github.com/ubolonton/emacs-tree-sitter/issues/38
2020-07-19 15:46:39 +07:00
Max Brunsfeld
82aa1462fd Clean up get_variable_info function 2020-07-17 15:12:13 -07:00
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
Max Brunsfeld
32bb2e5add
Merge pull request #684 from ubolonton/cli-query-byte-range
Add --byte-range flag to query command
2020-07-13 15:22:47 -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
4d09c81577 highlight: Avoid accidentally treating locals patterns as highlight patterns 2020-07-10 13:33:04 -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
6cee04350f tags: Expose utf16 column range to C API 2020-07-09 13:39:47 -07:00
Max Brunsfeld
9e38fd9f5c Add todo comment for LossyUtf8 iterator 2020-07-09 12:32:40 -07:00
Max Brunsfeld
0f80560310 tags: Reuse work when computing utf16 columns, line ranges 2020-07-09 12:13:12 -07:00
Max Brunsfeld
52360b103d tags: Fix comment position 2020-07-09 12:07:57 -07:00
Max Brunsfeld
1ecfc2548f tags: Move impls below type definitions 2020-07-09 11:30:30 -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
e9ea8192a3 Mention node version >= 6 in docs
Fixes #677
2020-07-09 09:11:38 -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
intrigus-lgtm
0438ed03ff
Fix wrong file name (#666)
"build_fuzzers" -> "build-fuzzers".
It should be a hypen and not an underscore.
2020-07-06 13:47:10 -07:00
Max Brunsfeld
de53b82e2c Remove unnecessary caching on Travis
macOS Travis builds have been extremely slow due to the final caching step.
2020-06-24 14:22:37 -07:00
Max Brunsfeld
deeeb67a3b
query: Fix handling of alternations under field names (#661) 2020-06-24 14:20:56 -07:00
Timothy Clem
d9d3da9942 Fill out rest of c errors 2020-06-18 16:04:05 -07:00
Timothy Clem
f166947abb Test updates, definition/reference prefix is now required 2020-06-18 15:05:27 -07:00
Timothy Clem
ef15f4df24 Dedupe items in syntax_type_names 2020-06-18 15:05:08 -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
54586c4e5b Named captures are dynamic
New c api for getting list of syntax_type names.
2020-06-18 14:42:30 -07:00
Timothy Clem
3bcb1f8c94 Assert line trimming 2020-06-18 10:48:33 -07:00
Timothy Clem
016ad53a2f Trim end of lines as well 2020-06-18 07:40:48 -07:00
Max Brunsfeld
bfeec63d60 Remove docs site banner for now 2020-06-18 07:12:33 -07:00
Timothy Clem
f24a952cb4 Minor output changes 2020-06-17 15:54:36 -07:00
Timothy Clem
819b800cf9 Pick up the proper initial index and test 2020-06-17 15:54:29 -07:00
Timothy Clem
7b2514a610 Whitespace 2020-06-17 15:12:18 -07:00
Timothy Clem
3c39b016a4 Trim whitespace from tag source lines 2020-06-17 15:11:42 -07:00
Timothy Clem
15202d0b38 Remove commented code 2020-06-17 15:11:31 -07:00
Timothy Clem
30132c682b Bring tags.h inline 2020-06-17 14:12:14 -07:00
Timothy Clem
3e8bf9dace These are always definitions 2020-06-17 10:35:16 -07:00