Commit graph

3727 commits

Author SHA1 Message Date
Max Brunsfeld
e22b42c9e6 Bump lib tree-sitter dependency versions in loader crate 2021-09-03 13:29:03 -07:00
Max Brunsfeld
aea35461b1
Merge pull request #1373 from tree-sitter/fix/1318
fix(lib): fix segfault on ts_query_new with incompatible grammar version
2021-09-03 13:21:41 -07:00
Andrew Hlynskyi
52e6c900c3 fix(lib): fix segfault on ts_query_new with incompatible grammar version, close #1318 2021-09-03 14:24:18 +03:00
Max Brunsfeld
0e26fbe5e6
Merge pull request #1367 from jrieken/moduleInit
Allow to pass Module object to init-function
2021-08-30 09:32:43 -07:00
Max Brunsfeld
eeda44d837
Merge pull request #1368 from jrieken/dtsTweaks
Fixes and additions to tree-sitter-web.d.ts
2021-08-30 09:17:53 -07:00
Johannes Rieken
3e9874df7f Don't confuse terser with object spread 2021-08-30 14:56:28 +02:00
Johannes Rieken
e7a8e73bbf fixes and additions to tree-sitter-web.d.ts 2021-08-30 14:47:47 +02:00
Johannes Rieken
12d727fd49 mix init options in the Module-global 2021-08-30 14:16:41 +02:00
Max Brunsfeld
8fa875b1a4 Fix possible infinite loop when running syntax highlighting tests
Fixes #1347
2021-08-29 15:04:23 -07:00
Max Brunsfeld
81c724cea0
Merge pull request #1364 from rydesun/add-dot-parser
Add Graphviz DOT parser
2021-08-29 11:48:36 -07:00
rydesun
c7f118ce55 Add Graphviz DOT parser 2021-08-29 20:21:17 +08:00
Andrew Hlynskyi
53f094f05e
Merge pull request #1362 from ahlinc/fix/891
chore(docs): Fix getting started example, closes #891
2021-08-27 11:09:58 +03:00
Andrew Hlynskyi
c1849098f5 chore(docs): Fix getting started example, closes #891 2021-08-27 11:07:49 +03:00
Andrew Hlynskyi
92007dc9b5
Merge pull request #1354 from beyonddream/master
chore(docs): Fix broken links of research papers
2021-08-25 01:32:50 +03:00
beyonddream
3c59284df5 Fix broken links of research papers. 2021-08-22 04:07:49 -07:00
Max Brunsfeld
c30ac18900
Merge pull request #1353 from ahlinc/chore/add-license-files-to-npm-packages
сhore: Add license files to npm packages
2021-08-21 19:45:29 -07:00
Andrew Hlynskyi
f15700c6bd chore(web): Add the LICENSE file to the web-tree-sitter npm package 2021-08-22 03:13:46 +03:00
Andrew Hlynskyi
88601000a2 chore(cli): Add the LICENSE file to the tree-sitter-cli npm package 2021-08-22 03:13:46 +03:00
Max Brunsfeld
5844d76deb
Merge pull request #1346 from FnControlOption/unicode-property-escape-aliases
Handle aliases in unicode property escapes in regexes
2021-08-19 14:29:44 -07:00
FnControlOption
e030434ca7 Handle aliases in unicode property escapes in regexes 2021-08-18 22:22:46 -07:00
Max Brunsfeld
82d4da553e
Merge pull request #1337 from narpfel/remove-unnecessary-borrows
Remove unnecessary borrows
2021-08-14 09:36:06 -07:00
Paul Gey
a533e4d7bb Remove unnecessary borrows
This produces an `unused_must_use` warning on nightly:
https://github.com/rust-lang/rust/pull/86426
2021-08-14 15:44:24 +02:00
Max Brunsfeld
c6dd5da5e6
Merge pull request #1329 from narpfel/improve-performance
Improve performance of `tree-sitter generate`
2021-08-11 16:08:23 -07:00
Paul Gey
f34c13d2a7 Update smallbitvec dependency 2021-08-08 21:45:43 +02:00
Paul Gey
965e3c9e5e Generator::add_parse_table: Store entries in hash map
This avoids a quadratic behaviour due to repeatedly using `find` on a
growing `Vec`.
2021-08-08 21:45:43 +02:00
Paul Gey
cf69a2c94c Use IndexMap and FxHash for some hot hash maps 2021-08-08 21:45:43 +02:00
Andrew Hlynskyi
fb6bd2cad3
Merge pull request #1321 from ahlinc/fix/generate-path-arg
fix(cli): Remove tree-sitter grammar ./... call limitation
2021-08-06 02:43:21 +03:00
Andrew Hlynskyi
533073cdb5 fix(cli): Remove tree-sitter grammar ./... call limitation 2021-08-06 02:11:35 +03:00
Kolja Lampe
c21bec3716 Always print where the playground is running 2021-08-06 01:58:24 +03:00
Kolja Lampe
99243ddaf2 Correct quiet description for playground 2021-08-06 01:58:24 +03:00
Andrew Hlynskyi
bc13d6e504
Merge pull request #1319 from ahlinc/fix/dead-code-in-logger
fix(cli): allow dead code in Logger; fixes CI failure
2021-08-06 01:08:58 +03:00
Andrew Hlynskyi
d8ac8f5d16 fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
Max Brunsfeld
c7998d93d0
Merge pull request #1278 from CyberShadow/pull-20210719-104342
feat(cli): Make "test" output more readable
2021-07-29 15:06:18 -07:00
Max Brunsfeld
d63bbbaadd
Merge pull request #1293 from niklasmohrin/patch-1
Fix highlighting typo on "creating parsers" site
2021-07-25 09:15:50 -07:00
Niklas Mohrin
66cfc05d76
Fix highlighting typo on "creating parsers" site 2021-07-25 14:08:46 +02:00
Max Brunsfeld
59cd1c3962
Merge pull request #1235 from ahlinc/feat/cli-help-messages
feat(cli): Add a lot of help messages for CLI options
2021-07-19 11:32:32 -07:00
Vladimir Panteleev
505bc5e1af
feat(cli): Make "test" output more readable 2021-07-19 10:56:21 +00:00
Max Brunsfeld
a017b9cea3
Merge pull request #1270 from ahlinc/fix/debug-log-row-count-from-0
fix(parser): count rows in the debug log from 0
2021-07-18 08:16:09 -07:00
Max Brunsfeld
906a62ef0c
Merge pull request #1187 from ahlinc/feat/internal-build-compiler-flag
feat(cli/loader): Add TREE_SITTER_INTERNAL_BUILD C/C++ compiler definition
2021-07-15 22:42:30 -07:00
Max Brunsfeld
64e6c11566
Merge pull request #1234 from ahlinc/fix/imrove-config-loading-err-msgs
fix(cli): Improve error messages on config.json loading, closes #1227
2021-07-15 20:37:40 -07:00
Andrew Hlynskyi
13108baef7 fix(cli): Improve error messages on config.json loading, closes #1227 2021-07-16 05:43:39 +03:00
Andrew Hlynskyi
7f538170bf fix(parser): count rows in the debug log from 0 2021-07-15 11:47:14 +03:00
Max Brunsfeld
9cb732859f Update unit test to reflect HTML grammar change 2021-07-12 12:21:10 -07:00
Max Brunsfeld
586f69f113
Merge pull request #1254 from stsewd/doc-wildcard-node
Docs: document `_` wildcard node
2021-07-11 09:58:39 -07:00
Santos Gallegos
4adc2f5c88
Docs: document _ wildcard node
Closes https://github.com/tree-sitter/tree-sitter/issues/1253
2021-07-11 10:25:42 -05:00
Max Brunsfeld
0926fad1e2
Merge pull request #1233 from ahlinc/fix/highlighting-theme-loading
fix(cli): fix theme key loading from config.json, closes #1232
2021-07-05 08:48:40 -07:00
Andrew Hlynskyi
b4208ee307 feat(cli): Add a lot of help messages for CLI options 2021-07-03 16:14:57 +03:00
Andrew Hlynskyi
bc94c0cc2f fix(cli): fix theme key loading from config.json, closes #1232 2021-07-03 03:38:24 +03:00
Max Brunsfeld
ad30779d90
Merge pull request #1224 from CyberShadow/pull-20210701-205820
fix(cli): Avoid ENOENT if config.json is not in TREE_SITTER_DIR
2021-07-01 14:51:22 -07:00
Vladimir Panteleev
09e2e9fe87
fix(cli): Avoid ENOENT if config.json is not in TREE_SITTER_DIR
Fixes #1222.
2021-07-01 20:58:23 +00:00