Skip to main content

parse_stmt

Function parse_stmt 

Source
pub fn parse_stmt(line: &str) -> Result<Stmt, VimlError>
Expand description

Parse one statement line into a Stmt.

Inline trailing comments (echo 1 " note) are not stripped in Phase 3: a " is a comment only where the command grammar expects end-of-command, but in expression position it opens a string. Full-line comments are skipped by the source splitter before this is called.