Skip to content

Commit f819788

Browse files
Merge branch 'chore/upgrade-pg-query' into feat/release-pipeline
2 parents 375ba48 + 2a1d566 commit f819788

File tree

11 files changed

+13
-16
lines changed

11 files changed

+13
-16
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
matrix:
123123
include:
124124
# reactive once we upgrade to the latest version of pg_query that is windows-compatible
125-
# - os: windows-latest
125+
- os: windows-latest
126126
- os: ubuntu-latest
127127
steps:
128128
- name: Checkout PR branch

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[submodule "libpg_query"]
22
path = libpg_query
33
url = https://github.com/pganalyze/libpg_query.git
4+
branch = 17-latest
45
[submodule "crates/tree_sitter_sql/tree-sitter-sql"]
56
path = lib/tree_sitter_sql/tree-sitter-sql
67
url = https://github.com/DerekStride/tree-sitter-sql

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pg_lexer/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ version = "0.0.0"
1515
regex = "1.9.1"
1616

1717
pg_lexer_codegen.workspace = true
18-
pg_query = "0.8"
18+
pg_query = "6.0.0"
1919

2020
cstree = { version = "0.12.0", features = ["derive"] }
2121
text-size.workspace = true

crates/pg_lexer/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub static WHITESPACE_TOKENS: &[SyntaxKind] = &[
6060
];
6161

6262
static PATTERN_LEXER: LazyLock<Regex> =
63-
LazyLock::new(|| Regex::new(r"(?P<whitespace> +)|(?P<newline>\n+)|(?P<tab>\t+)").unwrap());
63+
LazyLock::new(|| Regex::new(r"(?P<whitespace> +)|(?P<newline>\r?\n+)|(?P<tab>\t+)").unwrap());
6464

6565
fn whitespace_tokens(input: &str) -> VecDeque<Token> {
6666
let mut tokens = VecDeque::new();

crates/pg_query_ext/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ version = "0.0.0"
1313

1414
[dependencies]
1515
petgraph = "0.6.4"
16-
pg_query = "0.8"
16+
pg_query = "6.0.0"
1717

1818
pg_diagnostics.workspace = true
1919
pg_lexer.workspace = true

crates/pg_statement_splitter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ text-size.workspace = true
1717

1818
[dev-dependencies]
1919
ntest = "0.9.3"
20-
pg_query = "0.8"
20+
pg_query = "6.0.0"

crates/pg_syntax/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ pg_query_ext.workspace = true
2222

2323
[dev-dependencies]
2424
insta = "1.31.0"
25-
pg_query = "0.8"
25+
pg_query = "6.0.0"

crates/pg_syntax/tests/data/0033.sql

Lines changed: 0 additions & 6 deletions
This file was deleted.

libpg_query

Submodule libpg_query updated 736 files

0 commit comments

Comments
 (0)