syntax icon indicating copy to clipboard operation
syntax copied to clipboard

rust: tuple as returning type

Open namiwang opened this issue 7 years ago • 0 comments

syntax doesn't recognize the following code

some_thing
    : token1 node1 {
        |$1:Token, $2:Node| -> (Token, Node);
        $$ = ($1, $2);
    }
;

have to use sth like

type Type1 = (Token, Node);
some_thing
    : token1 node1 {
        |$1:Token, $2:Node| -> Type1;
        $$ = ($1, $2);
    }
;

Not that critical, though.

namiwang avatar Nov 23 '18 07:11 namiwang