Method OpenParens
OpenParens(string, out bool)
Counts the parentheses still open in text typed so far, to tell the command line whether to wait for more with its
(_> prompt. Parentheses in strings and comments are not counted.
public static int OpenParens(string text, out bool inString)
Parameters
textstringThe text.
inStringboolTrue when the text ends inside a string, which the prompt shows as
("_>.
Returns
- int
The number of
(still open, or a negative number once a)had no(.