See https://w3.org/TR/WGSL Further work is needed to refine it: - treat context-dependent names specially - treat template start and template end tokens specially, perhaps Fixes: #2388
13 lines
380 B
Text
13 lines
380 B
Text
---input---
|
|
// this is a line-ending comment
|
|
//* embed a bock comment start, after a space
|
|
// /* embed a bock comment start, v2
|
|
|
|
---tokens---
|
|
' ' Text.Whitespace
|
|
'// this is a line-ending comment\n' Comment.Single
|
|
|
|
' ' Text.Whitespace
|
|
'//* embed a bock comment start, after a space\n' Comment.Single
|
|
|
|
'// /* embed a bock comment start, v2\n' Comment.Single
|