Closed gruhn closed 4 months ago
Thanks for the report! I'm hoping to do some triage this weekend.
Actually, can't reproduce anymore. Maybe I was on an older version. Sorry, for the noise. Issue can be closed from my side.
I can still reproduce the issue.
See https://github.com/helix-editor/helix/issues/6797
edit: hm, should be fixed with https://github.com/camdencheek/tree-sitter-dockerfile/commit/71ac1e88805ba0f1826051be9148cb3fde70321c Maybe Helix needs to update to a newer ref.
Helix uses 7af32bc04a66ab196f5b9f92ac471f29372ae2ce - that’s really old.
I have found a related issue, albeit in a very specific scenario. It seems that the format USER <capital letters><dash><any>
breaks the formatting:
Should I make a separate issue?
The regex at https://github.com/camdencheek/tree-sitter-dockerfile/blob/8ee3a0f7587b2bd8c45c8cb7d28bd414604aec62/grammar.js#L123 excludes capital letters.
Edit: Yes, that would be a different issue.
Closing since I can no longer reproduce on the latest main
and it looks like this was a case of "downstream hadn't updated for a while"
For copy/paste: