aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorThéo Zimmermann2018-07-21 20:25:27 +0200
committerThéo Zimmermann2018-08-27 20:00:00 +0200
commitd5c9c90b9760bd51136f0ccbb041f8697ad0a081 (patch)
treed64111dda6c4af12eb15aa3a0570d4b9c0c6cf19 /ide
parentbce734bfb2a118dbb487e5b88eba524ca14d2078 (diff)
Add support for focusing on named goals using brackets.
Diffstat (limited to 'ide')
-rw-r--r--ide/coq_lex.mll6
1 files changed, 5 insertions, 1 deletions
diff --git a/ide/coq_lex.mll b/ide/coq_lex.mll
index 1fdd7317b5..b6654f6d7a 100644
--- a/ide/coq_lex.mll
+++ b/ide/coq_lex.mll
@@ -23,7 +23,11 @@ let number = [ '0'-'9' ]+
let string = "\"" _+ "\""
-let undotted_sep = (number space* ':' space*)? '{' | '}' | '-'+ | '+'+ | '*'+
+let alpha = ['a'-'z' 'A'-'Z']
+
+let ident = alpha (alpha | number | '_' | "'")*
+
+let undotted_sep = ((number | '[' ident ']') space* ':' space*)? '{' | '}' | '-'+ | '+'+ | '*'+
let vernac_control = "Fail" | "Time" | "Redirect" space+ string | "Timeout" space+ number