Commit graph

3292 commits

Author SHA1 Message Date
Joel Spadin
7ef73b2e08 web binding: fix equals()
Node.equals() used to always return true. Now it works.
Also added unit tests for it.
2020-11-26 14:43:27 -06:00
Patrick Thomson
2bf9c0113b
Merge pull request #775 from tree-sitter/query-testy
Define infrastructure for unit testing tags queries.
2020-11-24 15:32:36 -05:00
Max Brunsfeld
329592bdc3
Merge pull request #816 from owlseye/highlight-readme
highlight: Make README snippets compile
2020-11-24 09:51:15 -08:00
Luis Hagenauer
11e7b108f2 highlight: Make README snippets compile 2020-11-24 12:35:38 +01:00
Patrick Thomson
cc8f978b3b inline this lambda 2020-11-23 12:05:32 -05:00
Patrick Thomson
e1da6e554b Remove fanciful nomenclature. 2020-11-23 12:01:08 -05:00
Patrick Thomson
6764b803a0 Allow overlap in specs. 2020-11-23 11:58:07 -05:00
Patrick Thomson
0b4661e401 Really fix the tests. 2020-11-23 11:41:16 -05:00
Patrick Thomson
f3d16f4770 Fix tests. 2020-11-23 11:34:56 -05:00
Patrick Thomson
c1a8985712 Merge remote-tracking branch 'origin/master' into query-testy 2020-11-23 11:10:53 -05:00
Max Brunsfeld
b5d2aa7102
Merge pull request #809 from BonaBeavis/patch-1
Add SPARQL parser to docs
2020-11-20 10:17:09 -08:00
BonaBeavis
f28334a476
Add SPARQL parser to docs 2020-11-20 11:42:33 +01:00
Max Brunsfeld
f65c100522
Merge pull request #804 from kdarkhan/aarch64-compilation-fix
tags: fix compilation on aarch64
2020-11-16 12:11:48 -08:00
Max Brunsfeld
b267f90e64 Update unit tests to reflect python and ruby grammar changes 2020-11-16 10:51:08 -08:00
Darkhan Kubigenov
bf41088bd1 tags: fix compilation on aarch64
Fixes #798
2020-11-13 19:01:57 +06:00
Patrick Thomson
4604b40b72 better name for capture regex 2020-11-10 16:23:39 -05:00
Patrick Thomson
50bccdf5da rename Assertion.expected to expected_capture_name 2020-11-10 16:20:51 -05:00
Patrick Thomson
521297fdfe remove testing file 2020-11-10 16:19:17 -05:00
Patrick Thomson
c9c886d971 Merge remote-tracking branch 'origin/master' into query-testy 2020-11-10 16:16:53 -05:00
Max Brunsfeld
29dbc79402
Merge pull request #785 from alemuller/patch-1
add link to VHDL parser
2020-11-05 09:52:09 -08:00
Max Brunsfeld
d12b874a48
Merge pull request #735 from Vehmloewff/patch-1
Add documentation for `token.immediate`
2020-11-03 11:55:12 -08:00
Max Brunsfeld
5139d81e54
Merge pull request #622 from skovhus/patch-1
TypeScript: Correct SyntaxNode isNamed type
2020-11-03 10:34:27 -08:00
Max Brunsfeld
2d339de5d0
Merge pull request #787 from wingrunr21/add_ts_query_support
Update TS definitions to support the Query API
2020-11-03 10:30:58 -08:00
Max Brunsfeld
4e86b76e8c Update ruby error recovery test to reflect grammar tweaks 2020-11-03 10:28:17 -08:00
Stafford Brunk
2f897b4d73
Change QueryResult to be QueryCapture and QueryMatch
matches/captures return 2 different types of object so this change corrects the return types
2020-11-03 08:20:20 -07:00
Max Brunsfeld
281e75d74d rust binding: 0.17.1 2020-11-02 20:53:08 -08:00
Max Brunsfeld
c439a676cf 0.17.3 2020-11-02 14:53:01 -08:00
Max Brunsfeld
99cd283e39 query: Fix detection of repeated field names
Fixes #790
2020-11-02 14:07:39 -08:00
Max Brunsfeld
3497f34dd7 Fix parser-generation bugs introduced in #782 2020-11-02 13:43:28 -08:00
Max Brunsfeld
cced66cb3b
Merge pull request #784 from aibaars/node-types-extra-symbols
Ensure "extras" symbols are included in the node-types.json file
2020-11-02 13:27:28 -08:00
Stafford Brunk
a7a6139e70
Add additional Query API typedefs based on Elm Language Server's overrides 2020-10-30 10:20:12 -06:00
Stafford Brunk
505695040d
Update TS definitions to support the Query API 2020-10-30 06:58:13 -06:00
Arthur Baars
d62e7f7d75 Add test case with extra_symbols 2020-10-30 10:58:41 +01:00
Alexandre A. Muller
bcd48e3b94
add link to VHDL parser 2020-10-29 19:08:55 +00:00
Max Brunsfeld
9e65d18ec6
Merge pull request #721 from TravonteD/master
Add link to fennel parser
2020-10-29 12:01:38 -07:00
Max Brunsfeld
6fc5dfb8e5
Merge pull request #766 from ikrima/feat-custom-allocfn
[feat] add custom allocation override
2020-10-29 10:13:46 -07:00
Arthur Baars
f07dda692e Ensure "extras" symbols are included in the node-types.json file
The symbols marked as "extras" are the start symbols of secondary
languages. These should be included in the aliases map just as done
for start symbol of the main language to ensure their node type and
field information is included in the node-types.json file.
2020-10-29 18:05:24 +01:00
ikrima
a99676282f noop: touch file to retrigger github checks 2020-10-29 09:36:44 -07:00
ikrima
23530ca599 CR fixes: don't allow override of allocfn during testing 2020-10-29 09:23:58 -07:00
ikrima
336517fdc9 address CR comments
- replace _dflt with _default
- allow override in TREE_SITTER_TEST path
2020-10-29 09:17:19 -07:00
ikrima
3859e52198 add custom allocation override 2020-10-29 09:17:19 -07:00
Max Brunsfeld
1992734195 0.17.2 2020-10-28 14:12:56 -07:00
Max Brunsfeld
c2c63baf5b query: Fix escape sequence parsing in anonymous node patterns
Fixes #776
Fixes #760
2020-10-28 13:55:13 -07:00
Max Brunsfeld
071f4e40f1 Fix generate error when there are aliases in unused rules 2020-10-28 12:34:16 -07:00
Max Brunsfeld
bad2fd3954
Merge pull request #782 from tree-sitter/default-aliases
Ensure nodes are aliased consistently within syntax error nodes
2020-10-27 16:39:11 -07:00
Max Brunsfeld
a2d760e426 Ensure nodes are aliased consistently within syntax error nodes
Co-Authored-By: Rick Winfrey <rewinfrey@github.com>
2020-10-27 15:46:09 -07:00
Patrick Thomson
0bd223f032 Better naming for this regex. 2020-10-27 13:11:57 -04:00
Patrick Thomson
938eae8536 Merge remote-tracking branch 'origin/master' into query-testy 2020-10-27 09:16:58 -04:00
Patrick Thomson
1aee60a7c0 propitiate the tests 2020-10-26 14:35:18 -04:00
Patrick Thomson
6adeb7b40d move shared code to query_testing 2020-10-26 14:27:33 -04:00