Skip to content

Commit

Permalink
Fix mixed tab & space indentention
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Apr 15, 2024
1 parent 9ff22cd commit 98471a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions internal/filter/parser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions internal/filter/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ filter_rule: filter_chain logical_op filter_chain
}
| filter_rule logical_op filter_chain
{
$$ = reduceFilter($2, $1, $3)
yylex.(*Lexer).rule = $$
$$ = reduceFilter($2, $1, $3)
yylex.(*Lexer).rule = $$
}
;

Expand Down Expand Up @@ -182,15 +182,15 @@ exists_expr: identifier
;

identifier: T_IDENTIFIER
{
column, err := url.QueryUnescape($1)
if err != nil {
// Something went wrong, so just panic and filter.Parse will try to recover from this.
panic(err)
}

$$ = column
}
{
column, err := url.QueryUnescape($1)
if err != nil {
// Something went wrong, so just panic and filter.Parse will try to recover from this.
panic(err)
}

$$ = column
}
;

optional_negation: /* empty */ { $$ = "" }
Expand Down

0 comments on commit 98471a8

Please sign in to comment.