Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge with upstream master (#2)
* Parse text blocks which may contain " (double quotes) * Update the versions of the repositories used for `script/parse-examples` * feat: make escape sequences distinguishable, fix multiline strings * chore: update tests * feat(queries): escape_sequence = @string.escape * chore: generate * feat: add test for escape sequences * Remove deprecated actions * fix, Remove obsolete "text_block" This seems to be a leftover of tree-sitter#137. Fixes tree-sitter#141 * fix, Local variable declaration with generic types and scoped type identifier This change partially reverts a change from tree-sitter#125 which caused the regression. The test case introduced by tree-sitter#125 still exists and works. Fixes tree-sitter#138 * Create CMakeLists.txt for Windows builds create a cmake config to enable building this as lib for Visual Studio buildchain * Introduce condition expression for capturing the conditions for if_statement and while_statement * Check-in generated files * Add test * ci: bump action & node versions * fix: rework decimal logic to properly parse octal numbers * fix: make cast expression values with ampersands stricter Fixes issues where a binary bitwise expression could be interpreted as a cast expression * chore: generate * chore: tidy up Rust bindings * ci: add certain branch requirements for CI to run * Prevent mangled URL in .pc file Previously, the `Makefile` assumed that Git URLs were always “SSH style”, e.g., `git@github.com:tree-sitter/tree-sitter-java.git`. This change causes the right thing to be done when a normal URL is encountered, e.g. `https://github.com/tree-sitter/tree-sitter-java.git`. Relates to https://bugzilla.redhat.com/show_bug.cgi?id=2193261 * feat: add `record` as a keyword to highlights * fix: add more allowed reserved identifiers & allow them in annotation type element names * feat: add patterns * fix: repeated "field identifiers" can come before this in a receiver parameter * fix: allow annotations after new but before the type, add cent unicode to identifiers * chore: generate * add string interpolations * add switch pattern matching changes * add back generated code * feat: add unnamed patterns * allow toplevel method declarations * fix: a receiver parameter can be followed by more parameters * fix: annotations following type arguments * fix: escaped quote immediately before triple quote * fix: double-backslash escapes * fix: allow semicolons in annotation_type_declaration * chore: generate * Update workflow to publish crate, NPM package, and create GitHub release * Bump version to 0.20.2 * docs: update badges * fix: unescaped curly brace in regex and invert query precedence for test * fix(test): remove leading space * refactor: remove condition rule * fix: tweak escape sequence and identifier rules * chore: generate * build: update bindings and versions * ci: update workflows * fix: add support for whitespace * make whitespace nodes namedd * Parse text blocks which may contain " (double quotes) * Update the versions of the repositories used for `script/parse-examples` * feat: make escape sequences distinguishable, fix multiline strings * chore: update tests * feat(queries): escape_sequence = @string.escape * chore: generate * feat: add test for escape sequences * fix, Remove obsolete "text_block" This seems to be a leftover of tree-sitter#137. Fixes tree-sitter#141 * fix, Local variable declaration with generic types and scoped type identifier This change partially reverts a change from tree-sitter#125 which caused the regression. The test case introduced by tree-sitter#125 still exists and works. Fixes tree-sitter#138 * Remove deprecated actions * Create CMakeLists.txt for Windows builds create a cmake config to enable building this as lib for Visual Studio buildchain * Introduce condition expression for capturing the conditions for if_statement and while_statement * Check-in generated files * Add test * ci: bump action & node versions * fix: rework decimal logic to properly parse octal numbers * fix: make cast expression values with ampersands stricter Fixes issues where a binary bitwise expression could be interpreted as a cast expression * chore: generate * chore: tidy up Rust bindings * ci: add certain branch requirements for CI to run * Prevent mangled URL in .pc file Previously, the `Makefile` assumed that Git URLs were always “SSH style”, e.g., `git@github.com:tree-sitter/tree-sitter-java.git`. This change causes the right thing to be done when a normal URL is encountered, e.g. `https://github.com/tree-sitter/tree-sitter-java.git`. Relates to https://bugzilla.redhat.com/show_bug.cgi?id=2193261 * feat: add `record` as a keyword to highlights * fix: add more allowed reserved identifiers & allow them in annotation type element names * feat: add patterns * fix: repeated "field identifiers" can come before this in a receiver parameter * fix: allow annotations after new but before the type, add cent unicode to identifiers * chore: generate * add string interpolations * add switch pattern matching changes * add back generated code * feat: add unnamed patterns * allow toplevel method declarations * fix: a receiver parameter can be followed by more parameters * fix: annotations following type arguments * fix: escaped quote immediately before triple quote * fix: double-backslash escapes * fix: allow semicolons in annotation_type_declaration * chore: generate * Update workflow to publish crate, NPM package, and create GitHub release * Bump version to 0.20.2 * docs: update badges * fix: unescaped curly brace in regex and invert query precedence for test * fix(test): remove leading space * refactor: remove condition rule * fix: tweak escape sequence and identifier rules * chore: generate * build: update bindings and versions * ci: update workflows * fix: add support for whitespace * make whitespace nodes namedd * update parser * remove space pattern --------- Co-authored-by: Bruno Mahé <bruno@bmahe.net> Co-authored-by: Yoann Padioleau <yoann.padioleau@gmail.com> Co-authored-by: Amaan Qureshi <amaanq12@gmail.com> Co-authored-by: Luni-4 <luni-4@hotmail.it> Co-authored-by: Andreas Humenberger <andreas.humenberger@symflower.com> Co-authored-by: Gheorghi <larodi@gmail.com> Co-authored-by: Ameya Ketkar <94497232+ketkarameya@users.noreply.github.com> Co-authored-by: Amaan Qureshi <amaanq@Amaans-MacBook-Air.local> Co-authored-by: Peter Oliver <git@mavit.org.uk> Co-authored-by: Wilfred Hughes <me@wilfred.me.uk> Co-authored-by: brandonspark <wu.brandonj@gmail.com> Co-authored-by: Hendrik van Antwerpen <hendrikvanantwerpen@github.com> Co-authored-by: Hendrik van Antwerpen <hendrik@van-antwerpen.net> Co-authored-by: Will Lillis <wlillis@umass.edu> Co-authored-by: Raghav Shankar <raghav@deepsource.io>
- Loading branch information