diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2017-03-03 00:52:59 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2017-03-03 00:52:59 +0000 |
commit | 2a15a07e755b2acb18b76d87105253dc420acce8 (patch) | |
tree | 48d7b23cbcf588ba9cb0842fe624d8bbcc3280e3 /src/examples/verilogParse.py | |
parent | af93d51cf83fb6ff2e9bcbff56133a42d0ac31f9 (diff) | |
download | pyparsing-git-2a15a07e755b2acb18b76d87105253dc420acce8.tar.gz |
Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 (Deprecated in Python 3.6, will become SyntaxError in a future release)
Diffstat (limited to 'src/examples/verilogParse.py')
-rw-r--r-- | src/examples/verilogParse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/verilogParse.py b/src/examples/verilogParse.py index 2b7fd35..05650df 100644 --- a/src/examples/verilogParse.py +++ b/src/examples/verilogParse.py @@ -120,7 +120,7 @@ def Verilog_BNF(): identLead = alphas+"$_"
identBody = alphanums+"$_"
- identifier1 = Regex( r"\.?["+identLead+"]["+identBody+"]*(\.["+identLead+"]["+identBody+"]*)*"
+ identifier1 = Regex( r"\.?["+identLead+"]["+identBody+r"]*(\.["+identLead+"]["+identBody+"]*)*"
).setName("baseIdent")
identifier2 = Regex(r"\\\S+").setParseAction(lambda t:t[0][1:]).setName("escapedIdent")#.setDebug()
identifier = identifier1 | identifier2
|