summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2021-04-07 11:49:22 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-07-12 13:35:59 +0200
commita53353ffc63227dcfe325fd30380ef7f718501c4 (patch)
tree728e8460fb3311bae4e995ac21fda6f5a39170b0
parent4a44597bdd725f504ebd520b0deef7797dc46daa (diff)
downloadsystemd-a53353ffc63227dcfe325fd30380ef7f718501c4.tar.gz
hwdb: allow parser to expect usage of slash sign in value of property
Although in IEEE 1394 unit function list I have a plan to use slash sign in name of property, current implementation of parser doesn't allow it. When parsing current entries in database excluded from parser testing, we can find usage of slash sign in name of property. This commit adds slash sign in allow list of the parser for my convenience. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> (cherry picked from commit 5e939304f513ba57ce6595f36b7da641c62c60db)
-rwxr-xr-xhwdb.d/parse_hwdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
index 24964ff8d1..29d71796ce 100755
--- a/hwdb.d/parse_hwdb.py
+++ b/hwdb.d/parse_hwdb.py
@@ -99,7 +99,7 @@ def hwdb_grammar():
matchline = (matchline_typed | matchline_general) + EOL
propertyline = (White(' ', exact=1).suppress() +
- Combine(UDEV_TAG - '=' - Optional(Word(alphanums + '_=:@*.!-;, "'))
+ Combine(UDEV_TAG - '=' - Optional(Word(alphanums + '_=:@*.!-;, "/'))
- Optional(pythonStyleComment)) +
EOL)
propertycomment = White(' ', exact=1) + pythonStyleComment + EOL