Closed swiftcoder closed 4 years ago
Nice catch. It should be glsl::syntax::NonEmpty(..)
. However, changing this will make a breaking change. I think we should make it NonEmpty
but I’m also torn because NonEmpty
is a pretty simple type that should live / be taken from another crate.
quasiquote's
tokenize_block
produces a block containing afields: glsl::syntax::NonEmpty(vec![fields])
, where the base glsl crate expects justfields: vec![fields]
, resulting in an error:Happy to send a patch to correct this, but I'm not clear which is the desired structure - should we be adding a NonEmpty node to quasiquote, or removing it from glsl?