We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed this when parsing docker-compose.yml files, which have things like this:
ports: - 172.17.0.1:19000:19000
Where the item is to be considered a string. Generally a colon without a following space is ignored in these situations.
We go wrong at line 513 in parseseq:
parseseq
if sfind(rest, '^[^\'\"%s]*:') then -- Inline nested hash local indent2 = j lines[1] = string.rep(' ', indent2)..rest tinsert(seq, parsemap('', lines, indent2))
The minimal fix is simple - insist that there is a space after the colon:
if sfind(rest, '^[^\'\"%s]*:%s') then
I couldn't find any tests for 'inline nested hash' so I don't know if it continues to do that job.
The text was updated successfully, but these errors were encountered:
Issue peposso#17 allow seq items to have embedded colons (as long as …
35484d4
…they are not followed by a space)
No branches or pull requests
I noticed this when parsing docker-compose.yml files, which have things like this:
Where the item is to be considered a string. Generally a colon without a following space is ignored in these situations.
We go wrong at line 513 in
parseseq
:The minimal fix is simple - insist that there is a space after the colon:
I couldn't find any tests for 'inline nested hash' so I don't know if it continues to do that job.
The text was updated successfully, but these errors were encountered: