summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/tests/pyparsing/parse_shortlog.py
blob: 30d3ab35b327dae4f13a1b67dc5c6a728ed36e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# subject pyparsing definition
#
# Copyright (C) 2016 Intel Corporation
#
# SPDX-License-Identifier: GPL-2.0-only

# NOTE:This is an oversimplified syntax of the mbox's summary

import pyparsing
import common

target        = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables.replace(':','')))
summary       = pyparsing.OneOrMore(pyparsing.Word(pyparsing.printables))
shortlog       = common.start + target + common.colon + summary + common.end