Commit graph

70 commits

Author SHA1 Message Date
Camden Cheek d812f3a7fc
comments must start at beginning of line
Previously, this grammar allowed comments to start partway through
lines, but per the Dockerfile spec, that is not valid.
2021-06-20 11:47:14 -06:00
Camden Cheek b25f86c3b2
Add MIT license 2021-05-11 20:01:30 -06:00
Camden Cheek f3a88aa686
Format grammar.js with prettier 2021-05-11 20:00:07 -06:00
Camden Cheek 6c1ef89aa8
Update highlights 2021-05-11 09:35:05 -06:00
Camden Cheek ccb1df2ef2
Add README 2021-05-11 08:49:53 -06:00
Camden Cheek dfd7ce6b00
Add example 2021-05-11 08:48:53 -06:00
Camden Cheek 3a6c457095
Add support for the CROSS_BUILD instruction set 2021-05-11 08:47:20 -06:00
Camden Cheek 215639ff94
Fix parsing short env vars 2021-05-11 08:19:44 -06:00
Camden Cheek 00c68f09db
Allow square brackets after first character in shell fragment 2021-05-10 21:23:10 -06:00
Camden Cheek ca57ec244a
Add support for maintainer instruction 2021-05-10 21:16:32 -06:00
Camden Cheek 550e4cf0a3
Use immediate 2021-05-10 21:04:55 -06:00
Camden Cheek 732a4f0e4f
Add support for space-separated env instruction 2021-05-10 20:27:22 -06:00
Camden Cheek 3693a2fd05
Add support for shell fragments separated by comments 2021-05-10 18:55:28 -06:00
Camden Cheek 74e7f4c3e6
Name variable node for expansions 2021-05-10 17:35:00 -06:00
Camden Cheek 0c4af3e20f
Rename env_spec to expansion 2021-05-10 17:25:35 -06:00
Camden Cheek 4d4cef8121
Add AS keyword 2021-05-10 17:19:17 -06:00
Camden Cheek c281dc9daa
Fix image alias 2021-05-10 17:17:50 -06:00
Camden Cheek 3055288ce1
Add support for replacement vars 2021-05-10 15:16:09 -06:00
Camden Cheek 05a2aba52a
Add tests for comments 2021-05-09 20:13:17 -06:00
Camden Cheek b1fbbe6612
Initial working 2021-05-09 20:11:30 -06:00