Skip to main content

split_stmts

Function split_stmts 

Source
pub fn split_stmts(input: &str) -> Vec<(&str, bool)>
Expand description

Splits a raw input line into (statement_str, silent) pairs.

  • Strips inline % comments (outside string literals).
  • Splits on ; outside string literals and outside [...] brackets.
  • silent = true when the statement was terminated by ;.