aboutsummaryrefslogtreecommitdiff
path: root/vernac/g_vernac.mlg
diff options
context:
space:
mode:
authorGaëtan Gilbert2020-03-13 14:53:24 +0100
committerGaëtan Gilbert2020-04-13 15:18:18 +0200
commit7dc578956e1896b8bb68102f431795fc871cad7b (patch)
tree007c8afcd879268ccedb484439e4505f171dfdc2 /vernac/g_vernac.mlg
parent026aaf04abec1042303758783ee23354d2e0fbaa (diff)
Partial import inductive(..)
NB: 3 dots doesn't play well with PG's sentence detection.
Diffstat (limited to 'vernac/g_vernac.mlg')
-rw-r--r--vernac/g_vernac.mlg5
1 files changed, 4 insertions, 1 deletions
diff --git a/vernac/g_vernac.mlg b/vernac/g_vernac.mlg
index 642f504050..08ba49f92b 100644
--- a/vernac/g_vernac.mlg
+++ b/vernac/g_vernac.mlg
@@ -576,7 +576,10 @@ GRAMMAR EXTEND Gram
;
filtered_import:
[ [ m = global -> { (m, ImportAll) }
- | m = global; "("; ns = LIST1 global SEP ","; ")" -> { (m, ImportNames ns) } ] ]
+ | m = global; "("; ns = LIST1 one_import_filter_name SEP ","; ")" -> { (m, ImportNames ns) } ] ]
+ ;
+ one_import_filter_name:
+ [ [ n = global; etc = OPT [ "("; ".."; ")" -> { () } ] -> { n, Option.has_some etc } ] ]
;
export_token:
[ [ IDENT "Import" -> { Some false }