camdencheek / tree-sitter-dockerfile

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

Allow ENV values to have spaces and be multiline #24

Open marciomazza opened 2 years ago

marciomazza commented 2 years ago

The ENV "Alternative Syntax" mentioned in https://docs.docker.com/engine/reference/builder/#env allows values to have spaces and span multiple lines.

This is an example highlight before the grammar change:

highlight_before

Notice it breaks after the ENV line.

After the grammar change the highlight becomes:

highlight_after