./devel/ast-grep, CLI tool for code structural search, lint, and rewriting

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.40.5, Package name: ast-grep-0.40.5, Maintainer: pkgsrc-users

ast-grep(sg) is a CLI tool for code structural search, lint, and
rewriting.

ast-grep is a AST-based tool to search code by pattern code. Think it
as your old-friend grep but it matches AST nodes instead of text. You
can write patterns as if you are writing ordinary code. It will match
all code that has the same syntactical structure. You can use $ sign +
upper case letters as wildcard, e.g. $MATCH, to match any single AST
node. Think it as REGEX dot ., except it is not textual.


Master sites:

Filesize: 441.882 KB

Version history: (Expand)


CVS history: (Expand)


   2026-01-12 12:45:54 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.40.5

 - fix: fix error code returning 1 for non-result related error #2403
 - feat: support case insensitive option in files/ignores #2432
 - chore(deps): update dependency @ast-grep/napi to v0.40.4 4fca101
 - chore(deps): update dependency oxlint to v1.38.0 622da37
 - chore(deps): update dependency oxlint to v1.37.0 1a021ba
   2026-01-05 07:29:54 by pin | Files touched by this commit (4) | Package updated
Log message:
devel/ast-grep: update to 0.40.4

    feat: support --files-with-matches to list all files like ripgrep #2371
    fix: use new assert_cmd command #2399
    chore(deps): update dependency dprint to v0.51.1 9d00e5b
    chore(deps): update dependency @ast-grep/napi to v0.40.3 80f9c2b
    chore(deps): update dependency oxlint to v1.36.0 dea9153
   2025-12-20 21:03:08 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.40.3

    chore(deps): update dependency @types/node to v24.10.4 6a429db
    fix: remove debug println! from KindMatcher fa5cc7b
   2025-12-15 14:14:04 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.40.2

fix: exit status to 1 when no match #2392
fix: reject unknown keys for pattern #2390
fix: allow number in identifier #2387
chore(deps): update dependency @napi-rs/cli to v3.5.0 090fcd0
chore(deps): update dependency @ast-grep/napi to v0.40.1 ac69fd7
chore: bump lsp version 58138ad
   2025-12-11 12:47:27 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.40.1

    chore: add a link to the badges #2370
    fix: fix AST strictness check #2361
    chore(deps): update dependency @ast-grep/napi to v0.40.0 c98f0dc
    fix: use individual flag for parser 2bdcecb
    chore(deps): update dependency oxlint to v1.32.0 b058028
   2025-11-16 17:56:05 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.40.0

    fix: recognize yaml extension for sgconfig file #2340
    Merge SARIF printer into cloud printer 0970ac5
    Add SARIF output format support 308ccfb
    chore(deps): update dependency @ast-grep/napi to v0.39.9 a2d353b
   2025-11-07 10:52:09 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.39.9

    fix: do not output matched highlight when --update-all #2317
    chore(deps): update dependency @ast-grep/napi to v0.39.7 d6306b1
    chore(deps): update dependency oxlint to v1.26.0 85a256e
    chore(deps): update dependency oxlint to v1.25.0 0c09885
   2025-10-28 08:51:07 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.39.7

 - feat: LSP quick fix should support expandStart / expandEnd #2301
 - chore(deps): update dependency @ast-grep/napi to v0.39.6 6859809
 - chore(deps): update dependency oxlint to v1.24.0 6ee2f84
 - chore(deps): update dependency oxlint to v1.23.0 c88c8ca