diff options
| author | Gaëtan Gilbert | 2020-03-13 14:53:24 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-04-13 15:18:18 +0200 |
| commit | 7dc578956e1896b8bb68102f431795fc871cad7b (patch) | |
| tree | 007c8afcd879268ccedb484439e4505f171dfdc2 /vernac/g_vernac.mlg | |
| parent | 026aaf04abec1042303758783ee23354d2e0fbaa (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.mlg | 5 |
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 } |
