parse_shortlog.py 451 B

1234567891011121314
  1. # subject pyparsing definition
  2. #
  3. # Copyright (C) 2016 Intel Corporation
  4. #
  5. # SPDX-License-Identifier: GPL-2.0-only
  6. # NOTE:This is an oversimplified syntax of the mbox's summary
  7. import pyparsing
  8. import common
  9. target = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables.replace(':','')))
  10. summary = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables))
  11. shortlog = common.start + target + common.colon + summary + common.end