Path to this page:
./
devel/ast-grep,
CLI tool for code structural search, lint, and rewriting
Branch: CURRENT,
Version: 0.36.2,
Package name: ast-grep-0.36.2,
Maintainer: pkgsrc-usersast-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: 855.576 KB
Version history: (Expand)
- (2025-03-30) Updated to version: ast-grep-0.36.2
- (2025-03-12) Updated to version: ast-grep-0.36.1
- (2025-03-09) Updated to version: ast-grep-0.36.0
- (2025-02-16) Updated to version: ast-grep-0.35.0
- (2025-02-06) Updated to version: ast-grep-0.34.4
- (2025-01-30) Updated to version: ast-grep-0.34.3
CVS history: (Expand)
2025-03-30 18:48:49 by pin | Files touched by this commit (3) |  |
Log message:
devel/ast-grep: update to 0.36.2
fix: report-style short should not print out diff #1884
fix: fix do not push empty unused suppressions #1882
chore: Remove tree-sitter wasm facade 47b14fe
Revert "chore: Remove tree-sitter wasm facade" a449617
fix: remove optimize 7365a68
|
2025-03-12 14:22:07 by pin | Files touched by this commit (3) |  |
Log message:
devel/ast-grep: update to 0.36.1
- fix: fix globs not working with lang #1861
- perf: use smallvec for filter_file_{pattern, rule} #1858
- fix(deps): update dependency @swc/core to v1.11.8 a0d9e10
- perf: save pattern clone and doc clone in multi-lang-doc 1113384
- perf: remove duplicate pattern match 6eba6d9
|
2025-03-09 21:53:37 by pin | Files touched by this commit (3) |  |
Log message:
devel/ast-grep: update to 0.36.0
- perf: remove preScan struct #1837
- refactor: change Worker trait signature #1849
- fix: fix inconsistent matching in relaxed mode #1848
- feat: allow richer metadata format #1854
- fix: do not display color for error when not in tty #1850
- fix: make scan respect --globs flag #1842
- feat: move processing to worker thread #143
- feat: move matching to worker #143
- refactor: remove Matches/Diffs macro in cli #1819
- Breaking change: fix: bump min msrv 846be66
- refactor: split colored printer 083a5f9
- refactor: moved interactive printer b9bedf4
|
2025-02-16 09:49:21 by pin | Files touched by this commit (3) |  |
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) |  |
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) |  |
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) |  |
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) |  |
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
|