semgrep/ocaml-tree-sitter-semgrep

Parsing issue with Typescript

Closed this issue · 6 comments

This code failed to be parse :

export default interface UserCredential {
  idToken: string;
  user: any;
}

I've check, in https://github.com/tree-sitter/tree-sitter-typescript/blob/master/common/define-grammar.js, and think this is a not supported statement in the parser. But not sure as I don't know really well tree-sitter

aryx commented

@mjambon can you create the issue upstream if it comes from max?

Hi @SPoint42! Sorry for the delay. There's a pending pull request that should fix this: https://github.com/tree-sitter/tree-sitter-typescript/pull/125/files

any ETA ?

aryx commented

As soon as it's merged in the tree-sitter repo. Feel free to ping the PR martin linked above.

@mjambon is this done?

yes, this is fixed in production (semgrep 0.56 or above)!