Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mochi-neko committed Feb 20, 2024
1 parent 38c6767 commit 472fa21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/str_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ peg::parser! {

/// Multiple lines block of text.
rule multiline() -> Vec<String>
= !((whitespace() / newline())+) lines:$((!newline() [_])+ newline()) ++ ()
= !(whitespace() / newline()) lines:$((!newline() [_])+ newline()) ++ ()
{
lines
.iter()
Expand Down
2 changes: 1 addition & 1 deletion src/vtt_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ peg::parser! {

/// Multiple lines.
rule multiline() -> Vec<String>
= !((whitespace() / newline())+) lines:$((!newline() [_])+ newline()) ++ ()
= !(whitespace() / newline()) lines:$((!newline() [_])+ newline()) ++ ()
{
lines
.iter()
Expand Down

0 comments on commit 472fa21

Please sign in to comment.