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

Jawk doesn't support operations that span on multiple lines #67

Closed
bertysentry opened this issue Jan 9, 2024 · 1 comment
Closed

Jawk doesn't support operations that span on multiple lines #67

bertysentry opened this issue Jan 9, 2024 · 1 comment

Comments

@bertysentry
Copy link
Member

The following syntax should be supported:

{ 
  if ($0 ~ "A" &&
    $1 ~ "B") { print $2 }
}

But it returns ParserException: Expecting an ID. Got (258): (eol)

See https://www.gnu.org/software/gawk/manual/html_node/Statements_002fLines.html#awk-Statements-Versus-Lines

@bertysentry
Copy link
Member Author

Relates to #58

bertysentry added a commit that referenced this issue Jan 9, 2024
…-operations

Fixed issue #67 where eol wasn't supported after && || ? : ,
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