16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
import { char, until } from 'kuebiko'
|
|
|
|
// https://www.w3.org/TR/WGSL/#comments
|
|
const slash = char('\u002f')
|
|
const asterisk = char('\u002a')
|
|
|
|
const comment = seq(slash, slash)
|
|
|
|
const blockCommentStart = seq(slash, asterisk)
|
|
const blockCommentEnd = seq(asterisk, slash)
|
|
|
|
const blockComment = seq(
|
|
blockCommentStart,
|
|
until(blockCommentEnd)
|
|
)
|
|
|