camdencheek / tree-sitter-dockerfile

A tree-sitter grammar for Dockerfile
MIT License
71 stars 20 forks source link

Capital in `USER` argument breaks grammar #34

Closed Quitlox closed 1 year ago

Quitlox commented 1 year ago

Having a capital letter in the username/group of the USER command breaks the grammar as shown in the picture below.

image

Although having capital letters in a username is bad practice on linux, docker won't complain. Therefore this should not break the grammar.

From: https://github.com/camdencheek/tree-sitter-dockerfile/issues/30#issuecomment-1529538151