We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7060d9e + ed8e2ad commit 991dec4Copy full SHA for 991dec4
datajoint/declare.py
@@ -75,7 +75,7 @@ def build_foreign_key_parser():
75
76
77
def build_attribute_parser():
78
- quoted = pp.Or(pp.QuotedString('"'), pp.QuotedString("'"))
+ quoted = pp.QuotedString('"') ^ pp.QuotedString("'")
79
colon = pp.Literal(':').suppress()
80
attribute_name = pp.Word(pp.srange('[a-z]'), pp.srange('[a-z0-9_]')).setResultsName('name')
81
data_type = pp.Combine(pp.Word(pp.alphas) + pp.SkipTo("#", ignore=quoted)).setResultsName('type')
0 commit comments