2024-10-08 17:40:42 by Thomas Klausner | Files touched by this commit (3) |  |
Log message:
tree-sitter: update to 0.24.2.
[0.24.2] - 2024-10-06
Features
Drop legacy binding updates
Bug Fixes
templates: Properly replace author email
Build System and CI
bindings: Improve cmake file
cmake: Support amalgamated build
cmake: Correct library scopes
make: Fix tree-sitter.pc generation (#3745)
Other
templates: Update npm packages
[0.24.1] - 2024-10-04
Bug Fixes
generate: Move generated header files into the generate crate
[0.24.0] - 2024-10-04
Breaking
Remove C++ support for external scanners (#3602)
Remove filter flag from commands in favor of include and exclude (#3604)
Remove the build-wasm subcommand (#3605)
Move generation of grammar files to an init command (#3694)
Implement StreamingIterator instead of Iterator for QueryMatches and \
QueryCaptures (#3504)
generate: Remove unused rules (#3722)
lib: Child_containing_descendant now returns direct children (#3703)
lib: Treat nodes' end ranges exclusively in \
goto_first_child_for_{byte,point} (#3263)
Features
Add an API to time out query executions (#3559)
Add field_name_for_named_child (#3614)
Add root field in node-types.json (#3615)
Add eslint configuration package (#3666)
Provide a rebuild flag to force rebuild parsers (#3672)
Add shell completions (#3675)
Move generate logic to its own crate (#3689)
Add --overview-only to test subcommand (#3501)
Move tree-sitter configuration to dedicated file (#3700) (#3700)
api: Expose function to check if symbol represents a supertype (#3616)
bindings: Bump go-tree-sitter version (#3564)
cli: Add a no-ranges flag to the parse command (#3687)
generate: Bump tree-sitter dev dependency to 0.23 (#3563)
generate: Add a no-op --no-bindings flag
init: Add an update flag (#3698)
language: Derive Clone and Copy on LanguageFn (#3585)
schema: Misc improvements (#3681)
test: Test all queries
Bug Fixes
Correct comment quote (#3630)
Properly handle utf8 code points for highlight and tag assertions (#3610)
Do not generate spurious files if the grammar path is not the default path \
(#3677)
Disallow empty string literals in rules (#3679)
Correct test name parsing when the prior test has equal signs (#3704)
Handle more cases of editing subtrees that depend on column values (#3257)
Exclude APIs that dup given file descriptors from WASI builds (#3475)
Deprecate child_containing_descendant and add child_with_descendant instead \
(#3708)
binding_web: Correct edit signature (#3599)
binding_web: Remove nonexistent function definition (#3612)
bindings: Use RUST_BINDING_VERSION in Cargo.toml template
bindings: Lower go version to 1.22 (#3711)
build: Correct wasm root path lookup (#3723)
build: Force rebuild parsers when build is invoked (#3729)
cli: Remove conflicting short flags in the fuzz subcommand (#3562)
cli: Keep skipped tests unchanged in the test/corpus (#3590)
cli: Remove duplicate short options from fuzz command (#3635) (#3635)
cli: Generate the parser version from the config as well
docs: Fix highlight readme example using compatible versions (#3573)
fuzz: Skip tests marked with :skip & don't report errors on tests marked \
with :error (#3640)
generate: Remove necessary files from gitignore template (#3561)
generate: Disallow inline variables referencing themselves (#3569)
generate: Add tree-sitter to the dev-dependencies of the Cargo.toml (#3597)
generate: Do not generate large character sets for unused variables (#3606)
generate: Remove excludes in Package.swift (#3631)
generate: Add *.scm section to .editorconfig template (#3724)
generate: Filter out unused rules in other spots (#3726)
init: Fix some schema issues
init: Don't prompt to reconfigure (#3713)
init: Do not migrate package.json on error (#3718)
lib: Correct extra node creation from non-zero root-alias cursors (#3568)
lib: Backtrack to the last relevant iterator if no child was found (#3570)
lib: Peek at the next sibling when iterating to find the child that contains \
a given descendant (#3566)
lib: Correct descendant-for-range behavior with zero-width tokens (#3688)
lib: Silence warnings with -Wpedantic (#3691)
lib: Ensure an unfinished state was found before removing it (#3727)
rust: Add missing TSNode functions (#3571)
test: Exit with an error if a test marked with :error has no error
test: Retain attributes when running test -u (#3572)
test: Correctly handle assertions on empty lines (#3674)
wasm: Use / paths for workdir (#3658)
Documentation
Add Kotlin to the playground (#3560)
changelog: Add 0.23.0 release notes (#3565)
Refactor
Improve the grammar schema
cli: Break out subcommand logic into separate functions (#3676)
Build System and CI
Add backport workflow (#3575)
Bump deps (#3696)
Bump language to 0.1.1 (#3730)
bindings: Add CMakeLists.txt file (#3608)
cmake: Link wasmtime dependencies (#3717)
deps: Bump the cargo group across 1 directory with 11 updates (#3644)
deps: Bump the cargo group with 3 updates (#3671)
lib: Build using cmake (#3541)
make: Support darwin cross-compile (#3641)
xtask: Bump cmake version in bump-version
xtask: Only consider major and minor versions when validating the current version
xtask: Ignore the language crate
Other
Remove compile_flags.txt (#3667)
Update generate crate paths (#3697)
bindings: Update rust lib docs (#3621)
lib: Add parameter names in declarations that are missing them (#3692)
tests: Do not use .as_bytes().len() on strings (#3664)
|
2024-09-13 11:59:13 by Thomas Klausner | Files touched by this commit (4) |  |
Log message:
tree-sitter: update to 0.23.0.
[0.23.0] - 2024-08-26
Breaking
Introduce tree-sitter-language crate for grammar crates to depend on (#3069)
Revert interning of a sequence or choice of a single rule (#3548)
bindings: Use capsules in python (#3384)
dsl: Support other JS runtimes (#3355)
Features
Add fuzz subcommand (#3385)
Allow external scanners to use the logger (#3204)
bindings: Add query constants to python
bindings: Add node, python, swift tests (#3178)
bindings: Update npm scripts (#3210)
cli: Bump unicode data to v15.1.0
cli: Add debug build flag (#3279)
cli: Attach helpful context when grammar.json cannot be found (#3405)
cli: Add --show-fields flag to test command (#3502)
lib: Add ts_query_end_byte_for_pattern (#3451)
lib: Support no_std
zig: Update outdated path syntax (#3383)
Bug Fixes
Always reset to the first language when iterating over language attributes \
(#3375)
Better error when a supertype rule is invalid (#3400)
Intern a sequence or choice of a single element the same as the element itself
Do not "absorb" rules that consist of a single terminal if the \
rule is hidden (#2577)
bindings: Update go bindings (#3544)
cli: Installation via authenticated proxy (#3414)
cli: Dedup preceding_auxiliary_symbols (#3550)
dsl: Improve error message when a rule function returns undefined (#3452)
generate: Rename cargo.toml template (#3532)
go: Update parser name in binding files, add to docs (#3547)
lib: A null clock must have tv_nsec be 0 as well (#3372)
lib: Restrict pattern_map optimization when a wildcard step has an immediate \
first child (#3440)
lib: An empty root node should not precede an empty range (#3450)
lib: Fix api header C++ interop (#3534)
make: Fail properly on Windows (#3418)
rust: Fetch CARGO_MANIFEST_DIR at runtime in build script (#3352)
rust: Fix new clippy warnings (#3491)
test: Multi-grammar corpus tests are now in the repo root (#3342)
wasm: Update test
Performance
Hoist out common subexpressions in satisfies_text_predicates (#3397)
Documentation
Update changelog
Remove duplicate pr # in changelog
Add note for bullet
Fix syntax highlighting unit testing example (#3434)
Add tsserver annotation to example (#3460)
Fix tree cursor documentation (#3324)
Document rust library features (#3395)
Clean up binding & parser lists (#3443)
Refactor
Remove ansi_term dependency (#3387)
Remove difference dependency (#3388)
scripts: Clean up bash scripts (#3231)
Testing
Modernize scanner files (#3340)
Build System and CI
deps: bump wasmtime, cc, and wasmparser (#3529
bindings: Use language version in soname (#3308)
lib: Include the minor in the soname
loader: Make dependencies optional (#1638)
swift: Declare header search path (#3474)
wasm: Don't minify JS (#3380)
wasm: Bump emscripten to 3.1.64 (#3497)
wasm: Support big endian machines (#3492)
zig: Git ignore updated Zig cache directory (#3408)
Other
Swap sprintf() for snprintf() (#3430)
Add .build to gitignore (#3498)
Reset language when resetting wasm store (#3495)
Clone wasm store engine (#3542)
bindings: Fix indent & line endings (#3284)
|
2024-05-12 20:40:08 by Thomas Klausner | Files touched by this commit (2) |  |
Log message:
tree-sitter: update to 0.22.6.
Features
Improve handling of serialization buffer overflows (#3318)
Reverse iteration through node parents (#3214)
cli: Support NO_COLOR (#3299)
cli: Add test listing and allow users to parse a specific test number (#3067)
grammar: Add "inherits" field if available (#3295)
Bug Fixes
Correctly load field data from wasm languages
Improve error message when the tree-sitter field is malformed
Don't error out on package.json lookup errors if --no-bindings is passed (#3323)
cli: Keep default cc flags in build
cli: Properly account for multi-grammar repos when using docker to build a \
wasm parser (#3337)
generate: Don't check arbitrarily named dirs
generate: Take AsRef<Path> for the path parameter to avoid clones (#3322)
highlight: Correct signature of ts_highlighter_add_language
lib: Do not return field names for extras (#3330)
lib: Advance the lookahead end byte by 4 when there's an invalid code point \
(#3305)
rust: Update README example (#3307)
rust: Use unix + wasi cfg instead of not windows for fd (#3304)
test: Allow newlines in between test name and attribute
wasm: Correct childrenFromFieldXXX method signatures (#3301)
xtask: Always bump every crate in tandem
zig: Make usable as a zig dependency (#3315)
Documentation
Mention build command variables
Swap \s for \\s in query example
highlight: Typo (#3290)
Refactor
tests: Migrate remaining grammar.json tests to grammar.js (#3325)
Build System and CI
Add nightly rustfmt to workflow for linting (#3333)
Fix address sanitizer step (#3188)
deps: Bump cc from 1.0.92 to 1.0.94 in the cargo group (#3298)
deps: Bump the cargo group with 6 updates (#3313)
xtask: Bump build.zig.zon version when bumping versions
|
2024-04-30 20:30:52 by Thomas Klausner | Files touched by this commit (3) |
Log message:
*: tree-sitter had an ABI bump without bumping its shared libraries
Bump ABI depends and bump PKGREVISIONs of users.
https://github.com/tree-sitter/tree-sitter/issues/3296
|
2024-04-18 11:06:41 by Thomas Klausner | Files touched by this commit (2) |  |
Log message:
tree-sitter: update to 0.22.5.
[0.22.5] - 2024-04-14
Bug Fixes
cli: Fixed an issue where unused constants were included in generated \
parsers in some cases.
[0.22.4] - 2024-04-12
Bug Fixes
cli: Fixed an issue where redundant conditionals were included in generated \
lexer functions.
[0.22.3] - 2024-04-12
Performance
cli: Reduced the compile time of generated parsers by generating C code with \
fewer conditionals (#3234)
|
2024-04-10 23:23:42 by Thomas Klausner | Files touched by this commit (1) |
Log message:
tree-sitter: allow setting C standard
|
2024-03-17 15:19:19 by Thomas Klausner | Files touched by this commit (4) |  |
Log message:
tree-sitter: update to 0.22.2.
0.22.2
Install bugfix.
0.22.1
Bug Fixes
Cli build script behavior on release
0.22.0
Breaking
Remove top-level corpus dir for tests
The cli will now only look in test/corpus for tests
Remove redundant escape regex & curly brace regex preprocessing (#2838)
bindings: Convert node bindings to NAPI (#3077)
wasm: Make current*, is*, and has* methods properties (#3103)
wasm: Keep API in-line with upstream and start aligning with node (#3149)
Features
Add xtasks to assist with bumping crates (#3065)
Improve language bindings (#2438)
Expose the allocator and array header files for external scanners (#3063)
Add typings for the node bindings
Replace nan with node-addon-api and conditionally print logs
bindings: Add more make targets
bindings: Add peerDependencies for npm
bindings: Add prebuildify to node
bindings: Remove dsl types file (#3126)
node: Type tag the language (#3109)
test: Add attributes for corpus tests
Bug Fixes
Apply some scan-build suggestions (unused assignment/garbage access) (#3056)
Wrap || comparison in parentheses when && is used (#3070)
Ignore unused variables in the array macros (#3083)
binding.cc overwrite should replace PARSER_NAME (#3116)
Don't use __declspec(dllexport) on windows (#3128)
Parsers should export the language function on windows
Allow the regex v flag (#3154)
assertions: Case shouldn't matter for comment node detection
bindings: Editorconfig and setup.py fixes (#3082)
bindings: Insert types after main if it exists (#3122)
bindings: Fix template oversights (#3155)
cli: Only output the sources with --no-bindings (#3123)
generate: Add .npmignore, populate Swift's exclude list (#3085)
generate: Extern allocator functions for the template don't need to be \
"exported" (#3132)
generate: Camel case name in Cargo.toml description (#3140)
lib: Include api.h so ts_set_allocator is visible (#3092)
Documentation
Add GitHub user and PR info to the changelog
Add css for inline code (#2844)
Document test attributes
Add Ohm language parser
Remove duplicate the's (#3120)
Add discord and matrix badges (#3148)
Refactor
Rename TS_REUSE_ALLOCATOR flag (#3088)
Remove extern/const where possible
array: Use pragma GCC in clang too
bindings: Remove npmignore (#3089)
Testing
Don't use TS_REUSE_ALLOCATOR on Darwin systems (#3087)
Add test case for parse stack merging with incorrect error cost bug (#3098)
Build System and CI
Improve changelog settings (#3064)
Unify crate versions via workspace (#3074)
Update cc to remove annoying debug output (#3075)
Adjust dependabot settings (#3079)
Use c11 everywhere
Add uninstall command
Don't skip tests on failing lint (#3102)
Remove unused deps, bump deps, and bump MSRV to 1.74.1 (#3153)
bindings: Metadata improvements
bindings: Make everything c11 (#3099)
dependabot: Update weekly instead of daily (#3112)
deps: Bump the cargo group with 1 update (#3081)
deps: Bump the cargo group with 1 update (#3097)
deps: Bump deps & lockfile (#3060)
deps: Bump the cargo group with 4 updates (#3134)
lint: Detect if Cargo.lock needs to be updated (#3066)
lint: Make lockfile check quiet (#3078)
swift: Move 'cLanguageStandard' behind 'targets' (#3101)
Other
Make Node.js language bindings context aware (#2841)
They don't have any dynamic global data, so all it takes is just declaring \
them as such
Fix crash when attempting to load ancient languages via wasm (#3068)
Use workspace dependencies for internal crates like Tree-sitter (#3076)
Remove vendored wasmtime headers (#3084)
When building rust binding, use wasmtime headers provided via cargo
by the wasmtime-c-api crate.
Fix invalid parse stack recursive merging with mismatched error cost (#3086)
Allowing this invalid merge caused an invariant to be violated
later on during parsing, when handling a later error.
Fix regression in subtree_compare (#3111)
docs: Add Ohm language parser (#3114)
Delete binding_files.rs (#3106)
bindings: Consistent wording (#3096)
bindings: Ignore more artifacts (#3119)
|
2024-02-25 16:26:57 by Thomas Klausner | Files touched by this commit (3) |  |
Log message:
tree-sitter: update to 0.21.0.
Breaking
Remove the apply-all-captures flag, make last-wins precedence the default
NOTE: This change might cause breakage in your grammar's highlight tests.
Just flip the order around of the relevant queries, and keep in mind that the
last query that matches will win.
Features
Use lockfiles to dedup recompilation
Improve error message for files with an unknown grammar path (#2475)
Implement first-line-regex (#2479)
Error out if an empty string is in the extras array
Allow specifying an external scanner's files (#3031)
Better error info when a scanner is missing required symbols
cli: Add an optional grammar-path argument for the playground (#3014)
cli: Add optional config-path argument (#3050)
loader: Add more commonly used default parser directories
Bug Fixes
Prettify xml output and add node position info (#2970)
Inherited grammar generation
Properly error out when the word property is an invalid rule
Update schema for regex flags (#3006)
Properly handle Query.matches when filtering out results (#3013)
Sexp format edge case with quoted closed parenthesis (#3016)
Always push the default files if there's no externals
Don't log NUL characters (#3037)
Don't throw an error if the user uses map in the grammar (#3041)
Remove redundant imports (#3047)
cli: Installation via a HTTP tunnel proxy (#2824)
cli: Don't update tests automatically if parse errors are detected (#3033)
cli: Don't use long for grammar_path
test: Allow writing updates to tests without erroneous nodes instead of \
denying all of them if a single error is found
test: Edge case when parsing UNEXPECTED/MISSING nodes with an indentation \
level greater than 0
wasm: Remove C++ mangled symbols (#2971)
Documentation
Create issue template (#2978)
Document regex limitations
Mention that token($.foo) is illegal
Explicitly mention behavior of walking outside the given "root" \
node for a TSTreeCursor (#3021)
Small fixes (#2987)
Add Tact language parser (#3030)
web: Provide deno usage information (#2498)
Refactor
Extract regex check into a function and lower its precedence
&PathBuf -> &Path (#3035)
Name anonymous types in api.h (#1659)
Testing
Add quotes around bash variables (#3023)
Update html tests
Build System and CI
Only create release for normal semver tags (#2973)
Add useful development targets to makefile (#2979)
Remove minimum glibc information in summary page (#2988)
Use the native m1 mac runner (#2995)
Add editorconfig (#2998)
Remove symbolic links from repository (#2997)
Move common Cargo.toml keys into the workspace and inherit them (#3019)
Remove reviewers when drafting or closing a PR (#2963)
Enable creating changelogs with git-cliff (#3040)
Cache fixtures (#3038)
Don't cancel jobs on master (#3052)
Relax caching requirements (#3051)
deps: Bump clap from 4.4.18 to 4.5.0 (#3007)
deps: Bump wasmtime from v16.0.0 to v17.0.1 (#3008)
deps: Bump wasmtime to v18.0.1 (#3057)
sanitize: Add a timeout of 60 minutes (#3017)
sanitize: Reduce timeout to 20 minutes (#3054)
Other
Document preferred language for scanner (#2972)
Add java and tsx to corpus tests (#2992)
Provide a CLI flag to open log.html (#2996)
Some more clippy lints (#3010)
Remove deprecated query parsing mechanism (#3011)
Print out full compiler arguments ran when it fails (#3018)
Deprecate C++ scanners (#3020)
Add some documentation to the playground page (#1495)
Update relevant rust tests (#2947)
Clippy lints (#3032)
Error out when multiple arguments are passed to token/token.immediate (#3036)
Tidying
Prefer turbofish syntax where possible (#3048)
Use published wasmtime crates
Cleaner cast
Update Cargo.lock
Get rid of github_issue_test file (#3055)
cli: Use spawn to display emcc's stdout and stderr (#2494)
cli: Warn users when a query path needed for a subcommand isn't specified in \
a grammar's package.json
generate: Dedup and warn about duplicate or invalid rules (#2994)
test: Use different languages for async tests (#2953)
wasm: Use SIDE_MODULE=2 to silence warning (#3003)
|
2024-01-28 14:28:34 by Thomas Klausner | Files touched by this commit (4) |  |
Log message:
tree-sitter: update to 0.20.9.
Changes not found.
|
2023-04-26 01:29:50 by Nikita | Files touched by this commit (2) |  |
Log message:
treesitter: update to version 0.20.8
Changelog (taken from \
https://github.com/tree-sitter/tree-sitter/releases/tag/v0.20.8):
v0.20.8
What's Changed
Change integer type in ts_parser__set_cached_token by @mattmassicotte in #1879
Explicit integer sizes for array capacity by @mattmassicotte in #1881
Resolving a crash when freeing a null pointer when cancelling parses by \
@logancollins in #1938
Add note about including an external scanner in Rust crate by @J3RN in #1936
Allow retrieving a tree's list of included ranges, fix some included range \
bugs by @maxbrunsfeld in #1952
Allow web-tree-sitter to work with Emscripten 3 by @J3RN in #1913
Fix test output formatting for rules starting with M/U by @mliszcz in #1941
Fix racing on playground webserver port binding by @ahlinc in #1953
Fix wasm tests and bump Emscripten version to 3.1.29 by @ahlinc in #2014
Add possibility to customize path to generated dynamically loaded libraries. \
Closes #1336 by @ahlinc in #2013
Add setting TREE_SITTER_DEBUG in the test sub command by @ahlinc in #2020
Produce smaller CLI release binary by stripping debug info by @ahlinc in #2031
Improve CLI init-config command with respect to TREE_SITTER_DIR by @sogaiu \
in #2035
Fix possible rollover of nanoseconds in clock.h by @paf31 in #1990
Derive Hash for Language in Rust binding by @Ekleog in #2080
Improve the performance of running a query in a small range of a large file \
by @maxbrunsfeld in #2085
Make all tests run in a reliable way by @ahlinc in #2135
New workflow for CI/CD with more release assets by @ahlinc in #2167
|