semgrep / ocaml-tree-sitter-semgrep

Generate parsers from tree-sitter grammars extended to support Semgrep patterns
GNU General Public License v3.0
4 stars 10 forks source link

Fix parsing of typed metavariable patterns for C# #513

Open mjambon opened 2 months ago

mjambon commented 2 months ago

I updated our syntax extension for typed_metavariable to match what's now done for cast_expression in tree-sitter-c-sharp.

The PR that uses this code is https://github.com/semgrep/semgrep-proprietary/pull/2340

Checklist

aryx commented 1 month ago

@ihji is our metavariable-type expert so he may have a comment but otherwise LGTM.