Max Brunsfeld
6dbe6a3a90
Merge branch 'master' into actions-ci
2021-02-05 10:19:05 -08:00
Max Brunsfeld
2b0de9dfec
Fix small bugs in conflict reporting
...
* Negative precedence values were not displayed
* Rule names were repeated in resolution suggestions
2021-02-01 13:30:06 -08:00
Max Brunsfeld
38444ea7f9
Merge pull request #904 from tree-sitter/character-set-ranges
...
Represent CharacterSet internally as a vector of ranges
2021-01-29 13:35:48 -08:00
Andrew Hlynskyi
2b9e5f6c4b
Fix hiding problems in ./build/Debug/tree_sitter_*_binding
...
In debug building modules also may happen errors and a current implementation
completely hides them, so errors like 'undefined symbol' can't be
easily identified due to wrong traceback and error message.
2021-01-29 15:54:10 +02:00
Max Brunsfeld
ab78ab3f9b
Represent CharacterSet internally as a vector of ranges
2021-01-28 16:10:39 -08:00
Max Brunsfeld
1dc127e5da
0.18.0
2021-01-07 17:07:29 -08:00
Yijun Yu
9e08712773
Add --xml option to save the parsed code into XML, using node.start_byte() and node.end_byte()
2021-01-04 22:07:38 +00:00
Max Brunsfeld
d5eb5969f9
Merge pull request #856 from 0xADD1E/master
...
Update CC for additional target support
2020-12-20 20:13:33 -08:00
Max Brunsfeld
391fc8c340
Update unit tests to expect ruby grammar change
2020-12-20 19:34:45 -08:00
Kája Lišková
915834c113
Update CC to version with better target support
...
This is just a minimal set of changes to dependencies.
macOS aarch64 support was only introduced in `cc` version 1.0.58, so this now allows tree-sitter to build natively on M1 computers
2020-12-20 16:09:17 -06:00
Max Brunsfeld
96f259d8c5
Run rustfmt
2020-12-03 09:48:20 -08:00
Max Brunsfeld
026231e93d
Merge branch 'master' into HEAD
2020-12-03 09:44:33 -08:00
Max Brunsfeld
b661050a61
Simplify setup for enabling/disabling allocation recording in the C lib
2020-12-02 15:35:13 -08:00
Max Brunsfeld
751ffd2ee1
Use new emscripten when building with docker
2020-12-01 11:04:06 -08: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
b267f90e64
Update unit tests to reflect python and ruby grammar changes
2020-11-16 10:51:08 -08: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
c9c886d971
Merge remote-tracking branch 'origin/master' into query-testy
2020-11-10 16:16:53 -05: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
Arthur Baars
d62e7f7d75
Add test case with extra_symbols
2020-10-30 10:58:41 +01: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
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
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
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
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
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
0a46033391
Remove duplication of LossyUtf8 helper
2020-10-14 11:35:50 -07:00