Skip to content

Commit d198ffb

Browse files
committed
1 parent 577db4a commit d198ffb

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ark/Cargo.toml

Lines changed: 1 addition & 1 deletion
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 = "a90d569e67ce17bc4c96f53e6e84a24f06de6367" }
50+
tree-sitter-r = { git = "https://github.com/r-lib/tree-sitter-r", rev = "bc8b4771bc4ac6c012f79877dbf44ba7cf87634f" }
5151
uuid = "1.3.0"
5252
url = "2.4.1"
5353
walkdir = "2"

crates/ark/src/lsp/diagnostics_syntax.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,4 +557,14 @@ switch(
557557
let diagnostics = text_diagnostics(text);
558558
assert!(diagnostics.is_empty());
559559
}
560+
561+
#[test]
562+
fn test_no_syntax_diagnostic_on_binary_exponent() {
563+
// https://github.com/r-lib/tree-sitter-r/issues/159
564+
let text = r#"
565+
0x0p-123
566+
"#;
567+
let diagnostics = text_diagnostics(text);
568+
assert!(diagnostics.is_empty());
569+
}
560570
}

0 commit comments

Comments
 (0)