Commit graph

6118 commits

Author SHA1 Message Date
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
Patrick Thomson
1012bea3f4 let's start sharing this code 2020-10-26 13:35:10 -04:00
Patrick Thomson
f364ce2304 Remove old assertion stuff 2020-10-26 13:22:12 -04:00
Patrick Thomson
9af9d66e19 it works 2020-10-26 13:13:25 -04:00
Patrick Thomson
3e18e97f7c start pulling in the stuff from test_highlight 2020-10-26 12:58:32 -04:00
Max Brunsfeld
a7125feb49
Merge pull request #780 from tree-sitter/fewer-node-allocs
Allocate parent node data alongside the array of children
2020-10-25 09:41:05 -07:00
Max Brunsfeld
2465207fee Suppress false non-null error in subtree_clone 2020-10-25 09:13:12 -07:00
Max Brunsfeld
9774f760c3 Disable clang static analyzer on CI
All of its output seems to be false positives.
2020-10-23 18:44:58 -07:00
Patrick Thomson
6fca3ebd9c
Merge pull request #779 from tree-sitter/dot-doc-dash
Document query anchor operator (#771)
2020-10-23 18:22:38 -04:00
Max Brunsfeld
533aaa462b Add heap-profiling script 2020-10-23 13:20:57 -07:00
Max Brunsfeld
b972a7158d Tweak cancellation logic for CLI commands
In 'parse' and 'highlight' cancel on stdin if stdin is a tty.
2020-10-23 12:15:44 -07:00
Max Brunsfeld
908b102786 Add more doc comments in the C lib 2020-10-23 12:15:44 -07:00
Max Brunsfeld
d533d1f076 Allocate parent nodes together with their child array 2020-10-23 12:15:44 -07:00
Patrick Thomson
1749a5d672 Shorter wording. 2020-10-23 15:11:53 -04:00
Patrick Thomson
4d8cdc2f36
Update docs/section-2-using-parsers.md
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-10-23 15:11:23 -04:00
Patrick Thomson
b42b873564
Update docs/section-2-using-parsers.md
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
2020-10-23 15:11:17 -04:00
Patrick Thomson
b5d20f07b6 Document query anchor operator (#771)
This was taken more or less directly from @maxbrunsfeld's PR comments
in https://github.com/tree-sitter/tree-sitter/pull/549. 🎩
2020-10-23 14:34:56 -04:00
Patrick Thomson
e370c5053e this is nicer, though 2020-10-23 14:11:46 -04:00
Patrick Thomson
363a0ce4fc things are working: time to piggyback off the highlighter's parser 2020-10-21 14:54:47 -04:00
Patrick Thomson
0dfe89f353 parse assertions from regex capture 2020-10-21 13:32:04 -04:00
Patrick Thomson
c691df5ae2 reading in the source correctly 2020-10-21 12:56:11 -04:00
Patrick Thomson
947528f019 use our Result type here 2020-10-21 12:49:41 -04:00
Patrick Thomson
91d5d59d85 Introduce query/assert and call it in query.rs. 2020-10-21 12:37:24 -04:00
Patrick Thomson
6f13d6bbba Define Python fixture 2020-10-21 12:17:16 -04:00
Max Brunsfeld
5caa83e020
Merge pull request #743 from XVilka/tinycc-support
Fix compilation with TinyCC
2020-10-21 07:12:19 -07:00
Anton Kochkov
3eee1d5376 Fix compilation with TinyCC 2020-10-21 15:41:19 +08:00
Max Brunsfeld
135c630e92
Merge pull request #764 from ikrima/fix-malloc-call
fix: ts_subtree_string not using ts_malloc
2020-10-15 23:50:37 -07:00
ikrima
50ff4376b4 fix: ts_subtree_string not using ts_malloc 2020-10-15 20:43:30 -07:00
Max Brunsfeld
8bb8e9b8b3 Initialize TSLanguage fields in order of their declaration
This makes parser.c valid under the C++20 standard
2020-10-15 07:20:12 -07:00
Max Brunsfeld
7aca288330 Move LossyUtf8 struct out of util module 2020-10-14 11:59:56 -07:00
Max Brunsfeld
0a46033391 Remove duplication of LossyUtf8 helper 2020-10-14 11:35:50 -07:00