semgrep / pfff

pfff is mainly an OCaml API to write static analysis, dynamic analysis, code visualizations, code navigations, or style-preserving source-to-source transformations such as refactorings on source code.
https://semgrep.dev
Other
186 stars 29 forks source link

Include start and end tokens of Python f strings #545

Closed nmote closed 2 years ago

nmote commented 2 years ago

Previously, these were discarded. Now they are included in the AST.

Test plan: Incorporate these changes into Semgrep. Run existing automated tests. Manually verify that https://github.com/returntocorp/semgrep/issues/2995 is fixed.

Security