Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

productionlist: Put the full production in production.rawsource #6358

Merged
merged 1 commit into from
May 14, 2019

Conversation

cpitclaudel
Copy link
Contributor

This makes it possible to iterate over the productions and see exactly the text
that was entered by the author, which is useful to e.g. extract information from
the grammar (like syntax-highlighting patterns).

@codecov
Copy link

codecov bot commented May 12, 2019

Codecov Report

Merging #6358 into 2.0 will increase coverage by 0.57%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              2.0    #6358      +/-   ##
==========================================
+ Coverage   83.64%   84.21%   +0.57%     
==========================================
  Files         278      276       -2     
  Lines       40239    39692     -547     
  Branches     5931     5866      -65     
==========================================
- Hits        33657    33427     -230     
+ Misses       5250     4950     -300     
+ Partials     1332     1315      -17
Impacted Files Coverage Δ
sphinx/domains/std.py 84.49% <100%> (+1.92%) ⬆️
sphinx/util/images.py 66.17% <0%> (-10.86%) ⬇️
sphinx/deprecation.py 59.09% <0%> (-6.82%) ⬇️
sphinx/ext/imgmath.py 48.21% <0%> (-3.79%) ⬇️
sphinx/domains/math.py 78.2% <0%> (-0.28%) ⬇️
sphinx/domains/changeset.py 93.67% <0%> (-0.24%) ⬇️
tests/test_application.py 98.68% <0%> (-0.09%) ⬇️
tests/test_autodoc.py 96.82% <0%> (-0.06%) ⬇️
sphinx/domains/python.py 75.12% <0%> (-0.05%) ⬇️
tests/test_util_images.py 100% <0%> (ø) ⬆️
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55554b0...44c8a3b. Read the comment docs.

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Could you rebase this into 2.0 branch? Then I'll merge this soon.

This makes it possible to iterate over the productions and see exactly the text
that was entered by the author, which is useful to e.g. extract information from
the grammar (like syntax-highlighting patterns).
@cpitclaudel cpitclaudel changed the base branch from master to 2.0 May 14, 2019 03:23
@cpitclaudel
Copy link
Contributor Author

Done! (I think? :)
As always, thanks for your dedication and your hard work!

@tk0miya tk0miya merged commit c1b30c1 into sphinx-doc:2.0 May 14, 2019
@tk0miya
Copy link
Member

tk0miya commented May 14, 2019

Merged. Thank you for your contribution :-)

tk0miya added a commit that referenced this pull request May 14, 2019
@@ -12,6 +12,8 @@ Incompatible changes
* #6230: The anchor of term in glossary directive is changed if it is consisted
by non-ASCII characters
* #4550: html: Centering tables by default using CSS
* The ``rawsource`` property of ``production`` nodes now contains the full
production rule.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: I moved this entry to features list.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants