Skip to content

Commit 8a4abdc

Browse files
committed
1 parent fe5acb7 commit 8a4abdc

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

Cargo.lock

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

crates/ark/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ stdext = { path = "../stdext" }
4747
tokio = { version = "1.26.0", features = ["full"] }
4848
tower-lsp = "0.19.0"
4949
tree-sitter = "0.23.0"
50-
tree-sitter-r = { git = "https://github.com/r-lib/tree-sitter-r", rev = "a0d3e3307489c3ca54da8c7b5b4e0c5f5fd6953a" }
50+
tree-sitter-r = { git = "https://github.com/r-lib/tree-sitter-r", rev = "b92b2cf3fa89d0364f2abd5fb86bc7a9aa669827" }
5151
uuid = "1.3.0"
5252
url = "2.4.1"
5353
walkdir = "2"
@@ -69,7 +69,7 @@ stdext = { path = "../stdext", features = ["testing"] }
6969
tempfile = "3.13.0"
7070

7171
[build-dependencies]
72-
cc = "1.0"
72+
cc = "1.1.22"
7373
chrono = "0.4.23"
7474
embed-resource = "2.5.0"
7575

crates/ark/src/lsp/diagnostics_syntax.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,4 +533,15 @@ function(x {
533533
let diagnostics = text_diagnostics(text);
534534
assert!(diagnostics.is_empty());
535535
}
536+
537+
#[test]
538+
fn test_no_syntax_diagnostic_on_raw_strings() {
539+
// https://github.com/r-lib/tree-sitter-r/issues/162
540+
let text = r#"
541+
r"-()-)-"
542+
r"--()-")--"
543+
"#;
544+
let diagnostics = text_diagnostics(text);
545+
assert!(diagnostics.is_empty());
546+
}
536547
}

0 commit comments

Comments
 (0)