Fix default for syntax_aliases not being respected

This commit is contained in:
Kovid Goyal 2023-04-02 15:07:41 +05:30
parent dfa41f01fd
commit bca67cde6f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2,4 +2,8 @@ from typing import Dict
def syntax_aliases(x: str) -> Dict[str, str]:
return {}
ans = {}
for x in x.split():
k, _, v = x.partition(':')
ans[k] = v
return ans