diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2023-02-12 15:36:57 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-02-19 20:03:09 +0300 |
commit | 55d44e25c32ada23cebf5ed77ea013030d0dc490 (patch) | |
tree | 4eeea6ea0e623cc4fa205292ddaf03d750feabc6 /calm | |
parent | 4efd27f70df3bf107bf7ad9b80e407f98da6f862 (diff) |
Improve hint parser error for embedded double quote
Diffstat (limited to 'calm')
-rwxr-xr-x | calm/hint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/hint.py b/calm/hint.py index 28a81b0..71fa7b9 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -232,7 +232,7 @@ def hint_file_parse(fn, kind, strict=False): errors.append('%s at line %d' % (error, i)) if (item.count('"') != 0) and (item.count('"') != 2): - errors.append('embedded quote at line %d' % (i)) + errors.append('double-quote within double-quotes at line %d (hint files have no escape character)' % (i)) # key:value match = re.match(r'^([^:\s]+):\s*(.*)$', item, re.DOTALL) |