We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7060d9e + 865d9d2 commit ed8e2adCopy full SHA for ed8e2ad
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