Page MenuHomePhabricator

WikiPEG: remove unnecessary variable assignment assertion mode
Open, LowPublic

Description

  • Change context.discard to context.asserted. "discard" is misleading, since we aren't really discarding anything
  • Change peg$discard to peg$check. Shorter and not misleading
  • Use "silence" instead of "discard" to refer to error suppression
  • No unnecessary variable assignment in assertion mode (currently only zero_or_more, one_or_more, and text checks for it)

Event Timeline

Change 511820 had a related patch set uploaded (by Dan1wang; owner: Dan1wang):
[wikipeg@master] Drop legacy & unused code (T224084). Avoid use of "discard" (T224085)

https://gerrit.wikimedia.org/r/511820

It's not necessary to file a Phabricator ticket for every change. Just describe the change in the commit message.

ssastry edited projects, added WikiPEG; removed Parsoid.