diff --git a/Ottofile b/Ottofile index 037e632..4b2d707 100644 --- a/Ottofile +++ b/Ottofile @@ -1,3 +1,6 @@ +/* + Example Ottofile +*/ pipeline { steps { diff --git a/crates/parser/src/pipeline.pest b/crates/parser/src/pipeline.pest index c100b29..1c308a7 100644 --- a/crates/parser/src/pipeline.pest +++ b/crates/parser/src/pipeline.pest @@ -44,4 +44,5 @@ STRV = @{ "''" | (!"'" ~ ANY)* } COMMA = @{ "," } WHITESPACE = _{ (" " | NEWLINE) } -COMMENT = _{ "//" ~ (!NEWLINE ~ ANY)* } +BLOCK_COMMENT = _{ "/*" ~ (BLOCK_COMMENT | !"*/" ~ ANY)* ~ "*/" } +COMMENT = _{ BLOCK_COMMENT | ("//" ~ (!NEWLINE ~ ANY)*) }