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

Accented letters in identifiers seems to break baron #164

Open
asterbini opened this issue Jul 26, 2020 · 1 comment
Open

Accented letters in identifiers seems to break baron #164

asterbini opened this issue Jul 26, 2020 · 1 comment

Comments

@asterbini
Copy link

asterbini commented Jul 26, 2020

I am parsing some of my student's code and I get the error:

Untreated elements: 'ù_usata'

because the identifier contains accented letters. (in this case the identifier was from the following definition

def parola_più_usata(dizionario,lista_ordinata):

Could the tokenizer possibly be fixed to allow also accented letters?

@asterbini
Copy link
Author

asterbini commented Jul 26, 2020

I have temporarily fixed it (badly, I am sure a better solution exists) by changing file baron/splitter.py at line 56 from

for section in (string.ascii_letters + "_" + "1234567890", " \t"):

to

for section in (string.ascii_letters + "àèìòùé_" + "1234567890", " \t"):

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

1 participant