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

Handle double quotes and spaces to fix parsing of lines with multiple… #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DaleStan
Copy link

… equals signs.

My savegames have several lines with multiple equals signs, usually in a special interest block:

special_interests=
{
	2601095="antagonizing_target_key" 2630399="swaying_target_key" 
}

or an artifact history block:

history=
{
	2605626=779.5.22 2657349=787.6.3 
}

This PR changes the tokenization of those lines so the parser can convert them to json.

It also changes the tokenization of att= and tr= lines. As far as I can tell, the resulting json for those lines is identical, so this does not turn into a breaking change.

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

Successfully merging this pull request may close these issues.

1 participant