File: docker

package info (click to toggle)
dte 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,152 kB
  • sloc: ansic: 28,421; sh: 94; awk: 56; makefile: 13; sed: 1
file content (32 lines) | stat: -rw-r--r-- 561 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
syntax docker

list -i instruction \
    ADD CMD COPY ENTRYPOINT ENV EXPOSE FROM MAINTAINER ONBUILD RUN \
    USER VOLUME WORKDIR

state start
    char -b a-zA-Z ident
    char # comment
    char -n " \t\n" bad
    eat this

state ident
    char -b a-zA-Z this
    char -bn " \t\n" bad error
    inlist instruction arguments keyword
    noeat -b bad

state arguments
    str "\\\n" this
    char "\n" start
    eat this

state comment
    char "\n" start
    eat this

state bad error
    recolor error
    char " \t" arguments
    char "\n" start
    eat this