From 55855391401e7476ea55e7b13cce3f15b32d9d8e Mon Sep 17 00:00:00 2001
From: Guillaume Melquiond
Date: Wed, 17 Sep 2014 16:12:17 +0200
Subject: Fix ambiguous regex in syntax highlighting.
This fix considerably speeds up syntax highlighting. It also avoids burning
100% CPU when typing long identifiers. Finally, identifiers longer than 20
characters are now properly highlighted, since the stack of the automaton
no longer overflows because of them.
---
ide/coq.lang | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ide/coq.lang b/ide/coq.lang
index 656041d30b..2905b26f00 100644
--- a/ide/coq.lang
+++ b/ide/coq.lang
@@ -26,7 +26,7 @@
[_\p{L}]
[_\p{L}'\pN]
\%{first_ident_char}\%{ident_char}*
- (\%{ident}*\.)*\%{ident}
+ (\%{ident}\.)*\%{ident}
[-+*{}]
\.(\s|\z)
(Definition)|(Let)|(Example)|(SubClass)|(Fixpoint)|(CoFixpoint)|(Scheme)|(Function)|(Hypothesis)|(Axiom)|(Variable)|(Parameter)|(Conjecture)|(Inductive)|(CoInductive)|(Record)|(Structure)|(Ltac)|(Instance)|(Context)|(Class)|(Module(\%{space}+Type)?)|(Existing\%{space}+Instance)|(Canonical\%{space}+Structure)
--
cgit v1.2.3