Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse some files #2

Open
asmuth444 opened this issue Jul 12, 2017 · 3 comments
Open

Unable to parse some files #2

asmuth444 opened this issue Jul 12, 2017 · 3 comments

Comments

@asmuth444
Copy link

asmuth444 commented Jul 12, 2017

Hey! I have been trying to parse multiple string files but I haven't been able to. After some research on your regex I was able to find that multiple comments put together individually are rejected. so i fixed them but the I tried parsing this but it failed.
/* Class = "UILabel"; text = "Circuit Breaker Health State"; ObjectID = "eCz-kD-Zye"; */ "eCz-kD-Zye.text" = "Circuit Breaker Health State";
I always end up getting this:

Invalid syntax: /
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\sesa466157\AppData\Local\Programs\Python\Python36-32\lib\site-packages\localizable.py", line 99, in parse_strings
end = m.end()
AttributeError: 'NoneType' object has no attribute 'end'
*

Please help.

@chrisballinger
Copy link
Owner

It's the ; character in the comment, I'm guessing. I'm not really supporting this library but if you find a fix I'll merge it.

@svyatoslav-zubrin
Copy link

svyatoslav-zubrin commented Mar 24, 2018

Hey. I faced the same issue today. @asmuth444 have you found any solution for it?

@asmuth444
Copy link
Author

asmuth444 commented Mar 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants