summaryrefslogtreecommitdiff
path: root/tools/coqdoc/pretty.mll
diff options
context:
space:
mode:
Diffstat (limited to 'tools/coqdoc/pretty.mll')
-rw-r--r--tools/coqdoc/pretty.mll9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/coqdoc/pretty.mll b/tools/coqdoc/pretty.mll
index ad9057ad..5c6c7952 100644
--- a/tools/coqdoc/pretty.mll
+++ b/tools/coqdoc/pretty.mll
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(*i $Id: pretty.mll 8666 2006-03-27 17:02:49Z notin $ i*)
+(*i $Id: pretty.mll 8861 2006-05-24 15:52:15Z notin $ i*)
(*s Utility functions for the scanners *)
@@ -173,8 +173,11 @@ let firstchar =
(* utf-8 letterlike symbols *)
'\226' ('\132' ['\128'-'\191'] | '\133' ['\128'-'\143'])
let identchar =
- firstchar | ['\'' '0'-'9' '@']
-let identifier = firstchar identchar*
+ firstchar | ['\'' '0'-'9' '@' ]
+let id = firstchar identchar*
+let pfx_id = (id '.')*
+let identifier =
+ id | pfx_id id
let symbolchar_no_brackets =
['!' '$' '%' '&' '*' '+' ',' '@' '^' '#'