From 3a447d83226c4591e796e44933dad8278d97d683 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Fri, 5 Jan 2018 12:57:56 +0100 Subject: Brackets support single numbered goal selectors. This allows to focus on a sub-goal other than the first one without resorting to the `Focus` command. --- ide/coq_lex.mll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ide') diff --git a/ide/coq_lex.mll b/ide/coq_lex.mll index 8bfd937e3..a7e9003db 100644 --- a/ide/coq_lex.mll +++ b/ide/coq_lex.mll @@ -17,7 +17,9 @@ let space = [' ' '\n' '\r' '\t' '\012'] (* '\012' is form-feed *) -let undotted_sep = '{' | '}' | '-'+ | '+'+ | '*'+ +let number = [ '0'-'9' ]+ + +let undotted_sep = (number space* ':' space*)? '{' | '}' | '-'+ | '+'+ | '*'+ let dot_sep = '.' (space | eof) -- cgit v1.2.3