kylebarron / stata_kernel

A Jupyter kernel for Stata. Works with Windows, macOS, and Linux.
https://kylebarron.dev/stata_kernel/
GNU General Public License v3.0
266 stars 57 forks source link

Kernel does not execute then `*` is used within multi-line `syntax` statement #417

Open mcaceresb opened 2 years ago

mcaceresb commented 2 years ago

Problem description

* is not parsed correctly with multi-line syntax statements. It's a stand-in that allows passing options across programs, but the kernel registers it as a comment if starts a line, even if it's part of a valid multi-line syntax statement. See below for example.

Debugging log

N/A

Code Sample

syntax, [ ///
    *]

Expected Output

Not an error. I get invalid syntax error.

Other information