Hacker News new | ask | show | jobs
by herrington_d 698 days ago
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.