Skip to content

Latest commit

 

History

History
94 lines (76 loc) · 4.67 KB

CHANGELOG.md

File metadata and controls

94 lines (76 loc) · 4.67 KB

Changelog

[0.21.0] — 2024-02-21

Breaking

  • Remove the apply-all-captures flag, make last-wins precedence the default by @amaanq

    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.

Bug Fixes

  • Prettify xml output and add node position info by @amaanq in #2970
  • Inherited grammar generation by @amaanq
  • Properly error out when the word property is an invalid rule by @amaanq
  • Update schema for regex flags by @amaanq in #3006
  • Properly handle Query.matches when filtering out results by @amaanq in #3013
  • Sexp format edge case with quoted closed parenthesis by @amaanq in #3016
  • Always push the default files if there's no externals by @amaanq
  • Don't log NUL characters by @amaanq in #3037
  • Don't throw an error if the user uses map in the grammar by @amaanq in #3041
  • Remove redundant imports by @amaanq in #3047
  • cli: Installation via a HTTP tunnel proxy by @stormyyd in #2824
  • cli: Don't update tests automatically if parse errors are detected by @amaanq in #3033
  • cli: Don't use long for grammar_path by @amaanq
  • test: Allow writing updates to tests without erroneous nodes instead of denying all of them if a single error is found by @amaanq
  • test: Edge case when parsing UNEXPECTED/MISSING nodes with an indentation level greater than 0 by @amaanq
  • wasm: Remove C++ mangled symbols by @amaanq in #2971

Build System

  • Add useful development targets to makefile by @dundargoc in #2979
  • Add editorconfig by @dundargoc in #2998
  • Remove symbolic links from repository by @dundargoc in #2997
  • Move common Cargo.toml keys into the workspace and inherit them by @amaanq in #3019
  • Enable creating changelogs with git-cliff by @dundargoc in #3040
  • deps: Bump clap from 4.4.18 to 4.5.0 by @dependabot[bot] in #3007
  • deps: Bump wasmtime from v16.0.0 to v17.0.1 by @dependabot[bot] in #3008
  • deps: Bump wasmtime to v18.0.1 by @amaanq in #3057

Documentation

  • Create issue template by @dundargoc in #2978
  • Document regex limitations by @amaanq
  • Mention that token($.foo) is illegal by @amaanq
  • Explicitly mention behavior of walking outside the given "root" node for a TSTreeCursor by @amaanq in #3021
  • Small fixes by @dundargoc in #2987
  • Add Tact language parser by @novusnota in #3030
  • web: Provide deno usage information by @sigmaSd in #2498

Features

  • Use lockfiles to dedup recompilation by @amaanq
  • Improve error message for files with an unknown grammar path by @amaanq in #2475
  • Implement first-line-regex by @sigmaSd in #2479
  • Error out if an empty string is in the extras array by @aminya
  • Allow specifying an external scanner's files by @amaanq in #3031
  • Better error info when a scanner is missing required symbols by @amaanq
  • cli: Add an optional grammar-path argument for the playground by @amaanq in #3014
  • cli: Add optional config-path argument by @WillLillis in #3050
  • loader: Add more commonly used default parser directories by @amaanq

Miscellaneous Tasks

  • Document preferred language for scanner by @calebdw in #2972
  • Add java and tsx to corpus tests by @amaanq in #2992
  • Provide a CLI flag to open log.html by @amaanq in #2996
  • Some more clippy lints by @amaanq in #3010
  • Remove deprecated query parsing mechanism by @amaanq in #3011
  • Print out full compiler arguments ran when it fails by @amaanq in #3018
  • Deprecate C++ scanners by @amaanq in #3020
  • Update relevant rust tests by @amaanq in #2947
  • Clippy lints by @amaanq in #3032
  • Error out when multiple arguments are passed to token/token.immediate by @amaanq in #3036
  • Update Cargo.lock by @amaanq
  • Get rid of github_issue_test file by @amaanq in #3055
  • cli: Use spawn to display emcc's stdout and stderr by @amaanq in #2494
  • cli: Warn users when a query path needed for a subcommand isn't specified in a grammar's package.json by @amaanq
  • generate: Dedup and warn about duplicate or invalid rules by @amaanq in #2994
  • test: Use different languages for async tests by @amaanq in #2953
  • wasm: Use SIDE_MODULE=2 to silence warning by @amaanq in #3003

Refactor

  • Extract regex check into a function and lower its precedence by @amaanq
  • &PathBuf -> &Path by @amaanq in #3035
  • Name anonymous types in api.h by @MatthewGentoo in #1659

Testing

  • Add quotes around bash variables by @dundargoc in #3023
  • Update html tests by @amaanq