Allow production lists to refer to tokens from other production groups.#8247
Allow production lists to refer to tokens from other production groups.#8247tk0miya merged 2 commits intosphinx-doc:3.xfrom
Conversation
tk0miya
left a comment
There was a problem hiding this comment.
Looks good. Could you add testcases for this new syntax?
|
I am a bit confused with the testing framework. I suppose I can add some testcases to |
Outside production lists, syntax "`foo:bar`" already makes it possible to refer to the production "bar" of group "foo". This commit offers the same feature inside production lists. Similarly to the reference syntax, prefixing with a tilde prevents the group from being displayed. This commit also makes it possible to use "`:bar`" to refer to production "bar" from a production list without a group name. This is especially useful when one has a main (unnamed) grammar and one or several named extensions that need to refer to it.
88813d5 to
c55be66
Compare
|
This is a testcase that corresponds with It's okay to modify them or to add new pair of project under |
c55be66 to
e79656d
Compare
e79656d to
ffacb2c
Compare
|
Thanks for the help. It seemed a bit too frail and tedious to parse the HTML output. (Contrarily to the other tests for |
|
Thank you for your work. LGTM! |
|
Note: I was wrongly labeled this as "4.0.0". But it's unexpected. |
Feature or Bugfix
Purpose
Outside production lists, syntax
`foo:bar`already makes it possible to refer to the productionbarof groupfoo. This commit offers the same feature inside production lists. Similarly to the reference syntax, prefixing with a tilde prevents the group from being displayed.This commit also makes it possible to use
`:bar`to refer to productionbarfrom a production list without a group name. This is especially useful when one has a main (unnamed) grammar and one or several named extensions that need to refer to it.