-
Notifications
You must be signed in to change notification settings - Fork 802
Replace <literal>
nodes with <constant>
for constants
#2310
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tackling this, this makes sense.
However, I'd wait a bit to check with translations as this does do some busy work for them (and as I'm being on the French translation and the constant tag does not generates links it would be nice that I can tackle more urgent stuff)
It would make sense to coordinate this with #1963 also to not repeat the work multiple times. |
Great! Let me inherit these changes here and mark the other PR in a TO-DO list in order to make the dependency explicit. |
b950b26
to
bae3592
Compare
b8da203
to
21eb6eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall OK but I'm going to wait to merge this as this is a QA change.
Also it would be nice to fix the whitespaces in another PR that one can skip-revcheck as those clutter the PR.
Whitespace changes were reverted 👍 |
Sorry for the delay in this, could you rebase the PR on master? |
Rebased. |
There are a few constants with replaceable parts that use These are the ones I've found in
|
I think these are missing cases @haszi. Thank you for pointing. |
The cases using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure the runkit changes are appropriate, nor the Enumeration docs as those refer to inline examples, maybe using code is more appropriate but I need to have a think about this.
172 occurrences were replaced from
<literal>([A-Za-z0-9_]+)::([A-Z0-9_\*]+)</literal>
to<constant>$1::$2</constant>
.See #2306 (comment).
TODO: