Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
tconbeer committed Nov 22, 2024
1 parent ba0af84 commit be9be05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sqlfmt/rules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# There are some function names in some dialects that are the same as
# word operators in other dialects. Here we lex those as function
# names IFF the name is immediately followed by a `(` (with no space
# after the name. Otherwise they are lexed as word_operators by the
# after the name. Otherwise they are lexed as word_operators by the
# next rule.
name="functions_that_overlap_with_word_operators",
priority=1099,
Expand Down
7 changes: 6 additions & 1 deletion tests/unit_tests/test_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,12 @@ def test_regex_anti_match(
(MAIN, "frame_clause", "range current row", "range "),
(MAIN, "frame_clause", "groups between 1 preceding", "groups "),
(MAIN, "functions_that_overlap_with_word_operators", "filter(foo)", "filter"),
(MAIN, "functions_that_overlap_with_word_operators", "isnull(bar, baz)", "isnull"),
(
MAIN,
"functions_that_overlap_with_word_operators",
"isnull(bar, baz)",
"isnull",
),
],
)
def test_regex_partial_match(
Expand Down

0 comments on commit be9be05

Please sign in to comment.