cmd-call-graph icon indicating copy to clipboard operation
cmd-call-graph copied to clipboard

The right parenthesis that signals the end of a codeblock is considered a part of the label

Open ThePirate42 opened this issue 5 years ago • 2 comments

Example: when a batch file contains a line like this:

if foo==%var% (foo & goto :foo) ELSE (bar & goto :bar)

cmd-call-graph considers foo) and bar) as labels.

ThePirate42 avatar Nov 24 '20 09:11 ThePirate42

Thanks for your bug report! Yes, that's definitely an issue and needs to be fixed!

I've been looking around for a cmd label definition, but wasn't able to find it. I'll search a bit more.

lupino3 avatar Nov 24 '20 13:11 lupino3

Some unofficial documentation here: https://stackoverflow.com/questions/4094699/how-does-the-windows-command-interpreter-cmd-exe-parse-scripts

lupino3 avatar Nov 24 '20 16:11 lupino3