Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Feb 7, 2023
1 parent 5c2dd6e commit 368e4b1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions prql-compiler/prqlc/src/jinja.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ fn find_span(source: &str, spans: Vec<Span>) -> &str {
let end = spans.last().unwrap();

let mut start_index = 0;
let mut end_index = 0;
let mut end_index = source.len();

dbg!(source);
dbg!(end);

let mut line = 1;
let mut col = 0;
Expand Down Expand Up @@ -161,7 +164,7 @@ mod test {
Span {
start_line: 7893648,
start_col: 79678,
end_line: 2,
end_line: 3,
end_col: 31,
}
]
Expand Down
4 changes: 2 additions & 2 deletions prql-compiler/prqlc/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#[cfg(not(target_family = "wasm"))]
mod cli;
#[cfg(not(target_family = "wasm"))]
mod watch;
#[cfg(not(target_family = "wasm"))]
mod jinja;
#[cfg(not(target_family = "wasm"))]
mod watch;

#[cfg(not(target_family = "wasm"))]
fn main() -> color_eyre::eyre::Result<()> {
Expand Down

0 comments on commit 368e4b1

Please # to comment.