News for hackers. Stuff that matters.
Re: by herrington_d on Wednesday July 24, 2024 @01:23PM (#41059441)
ast-grep is a structural code search tool that leverages syntax trees to find patterns in source code. But it was hard to extract a sub-language embedded inside a document.

ast-grep now supports a feature to handle language injection, allowing you to search for code written in one lanuage within documents of another language.