]> Cypherpunks repositories - gostls13.git/commitdiff
add mention of tag string to grammar comment
authorRob Pike <r@golang.org>
Fri, 31 Oct 2008 16:59:29 +0000 (09:59 -0700)
committerRob Pike <r@golang.org>
Fri, 31 Oct 2008 16:59:29 +0000 (09:59 -0700)
R=rsc
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=18232
CL=18232

src/lib/reflect/type.go

index 06fab4be55dec8db59d70d45637bd632e2401ca0..0d73944bb1ff44587134dbce1edb29603ef1d388 100644 (file)
@@ -452,10 +452,12 @@ func init() {
                functiontype
        typename =
                name '.' name
+       doublequotedstring = 
+               string in " ";  escapes are \0 (NUL) \n \t \" \\
        fieldlist =
                [ field { [ ',' | ';' ] field } ]
        field =
-               identifier stubtype
+               identifier stubtype [ doublequotedstring ]
        arraytype =
                '[' [ number ] ']' stubtype
        structtype =