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

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


Branch: CURRENT, Version: 0.35.0, Package name: ast-grep-0.35.0, 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: 851.608 KB

Version history: (Expand)


CVS history: (Expand)


   2025-02-16 09:49:21 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.35.0

    fix: ensure SerializableStopBy serialization matches deserialization #1802
    fix: ensure SerializableStopBy serialization matches deserialization (#1802) \ 
#1802
    feat: allow ERROR node in pattern to match everything #1791
    Breaking change: feat: use php-only-language for php #900
    Breaking change: refactor: better apis d91b5c5
    chore(deps): update dependency @ast-grep/napi to v0.34.4 a7ca599
    fix(deps): update dependency @babel/core to v7.26.8 bf5b3a4
   2025-02-06 12:19:15 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.34.4

    fix: fix bininstall #1744
    fix(deps): update dependency @swc/core to v1.10.12 3eea108
    chore(deps): update rust crate tempfile to v3.16.0 6939cca
    chore(deps): update dependency @types/node to v22.12.0 ea05951
   2025-01-29 22:41:53 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.34.3

0.34.3

    fix: fix binary command again 2c9034c

0.34.2

    fix: fix binary name for npm #1773
    fix: do not publich napi 553f5e5
   2025-01-26 08:24:51 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.34.1

0.34.1

    fix: fix windows error 4e48c9f

0.34.0

    feat: support cargo binstall #1744
    feat: add tracing of resolved configuration file path #1755
    fix: report error in run with wrong yaml #1768
    Breaking change: feat: reduce napi binary size #1759
    feat: compile sg as an alias of ast-grep #1757
    doc: update readme #574
    fix: remove sequel #1743
    Breaking change: feat: remove nonsupported language e5a0a55
    feat: use macro to simplify code d762257
    fix(deps): update dependency @babel/core to v7.26.7 5944dbf
   2025-01-13 21:26:14 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.33.1

    feat: Support passing rule config to SgNode match methods (matches, has, \ 
inside, follows, precedes) #1730
    chore(deps): update dependency @ast-grep/napi to v0.33.0 61f7177
    fix(deps): update dependency typescript to v5.7.3 85a7204
    fix(deps): update dependency tree-sitter to v0.22.4 ec70763
   2025-01-05 15:47:26 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.33.0

    Breaking change: refactor: move pyo3 registration to CustomLang 4ddb08f
    feat: introduce napi_lang for dynamic loading 1a8d782
    chore(deps): update dependency @ast-grep/napi to v0.32.3 713244f
   2024-12-30 12:59:14 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.32.3

    feat: print fixed rules count #1708
    fix: move unused suppressions to config crate #1624
    fix: allow malformed pattern to be dumped as tree #804
    fix: fix files not recognize in lsp #1691
    fix: fix crash when internal node has no child #1688
    feat: use mutable self in Printer trait 5e3835a
    feat: reduce binary size by remove Printer polymorphism 8b735cf
    feat: resolve rule id for ScanResult 9a7f3cc
   2024-12-19 10:42:45 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/ast-grep: update to 0.32.2

    fix: linting 10f3e74
    feat: distinguish manual type annotation 4558c48
    feat: add ChildTypes helper 0d477e9