shinyypig / matlab-in-vscode

A vscode extension for matlab.
MIT License
45 stars 4 forks source link

Change how multiline statements are parsed #3

Closed Veng97 closed 1 year ago

Veng97 commented 1 year ago

Changes the way the python backend handles multiline statements. Now it checks for a regex match with one of the following control statements: pattern = r"\b(if|for|while|switch|try|parfor|function)\b"

If the command contains such a pattern, it will keep expecting inputs until the next 'end' statement.

shinyypig commented 1 year ago

Thanks for your contribution.