Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ... to match multiple lines #3

Open
ctheune opened this issue Feb 7, 2024 · 1 comment
Open

Allow ... to match multiple lines #3

ctheune opened this issue Feb 7, 2024 · 1 comment

Comments

@ctheune
Copy link
Member

ctheune commented Feb 7, 2024

I have this output that I want to match flexibly with a single in_order or continuous pattern:

E         🟢 owrap           | <!DOCTYPE html>
E         🟢 owrap           | <html lang="en">
E         🟢 owrap           |   <head>
E         🟢 owrap           |     <meta charset="utf-8">
E         🔴 owrap           |     <meta http-equiv="X-UA-Compatible" content="IE=edge">
E         🟡                 |     <meta name="viewport" content="width=device-width, initial-scale=1.0">
E         🟡                 |
E         🟡                 |     <title>Aramaki</title>
E         🟡                 |
E         🟡                 |     <!-- Custom styles for this scaffold -->
E         🟡                 |     <link href="http://example.com/static/aramaki.css?x=1707293617" rel="stylesheet">
E         🟡                 |
E         🟡                 |     <script src="http://example.com/static/htmx.min.js?x=1707293617" defer></script>
E         🟡                 |     <script src="http://example.com/static/hyperscript.min.js?x=1707293617" defer></script>
E         🟡                 |
E         🟡                 |   </head>

However, I'd like to not specify the exact number of meta and script tags, but rather use something like this:

<!DOCTYPE html>
<html lang="en">
  <head>
...
    <title>Aramaki</title>
...
  </head>
@ctheune
Copy link
Member Author

ctheune commented Feb 7, 2024

The important part here is that I want the owrap to match all owrap lines without having to add a global optional("...") pattern that would then never hint for unexpected lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant