astro-ghostcms/.pnpm-store/v3/files/f8/f3ca22a0faeec79f1f823fee636...

13 lines
268 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
import { NUMBER, SLASH } from '../tokenTypes'
export default tokenStream => {
let aspectRatio = tokenStream.expect(NUMBER)
if (tokenStream.hasTokens()) {
tokenStream.expect(SLASH)
aspectRatio /= tokenStream.expect(NUMBER)
}
return { aspectRatio }
}