Skip to content

Commit c929e51

Browse files
update: version number
1 parent 811c0b5 commit c929e51

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
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.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
[package]
88
name = "dracula"
99
description = "🧛 Count-ing lines, AH AH AHH!"
10-
version = "0.1.0"
10+
version = "0.1.2"
1111
authors = ["Swarnim Arun <[email protected]>"]
1212
edition = "2021"
1313
license-file = "LICENSE"

cdracula/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cdracula"
33
description = "🧛 Count-ing lines, AH AH AHH!"
4-
version = "0.1.0"
4+
version = "0.1.2"
55
authors = ["Swarnim Arun <[email protected]>"]
66
edition = "2021"
77

pydracula/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pydracula"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
authors = ["Swarnim Arun <[email protected]>"]
55
edition = "2018"
66

src/parse.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,20 +323,21 @@ impl<L: Language> Parser<'_, L> {
323323
})
324324
})
325325
{
326-
Ok(items[i].to_parse_output(&src[0..b + end_matches[2].end]))
326+
Ok(items[i].to_parse_output(&src[..b + end_matches[2].end]))
327327
} else if let Some(end) = (1..=src.len()).find(|&idx| {
328-
idx == src.len()
329-
|| src[idx..].starts_with('\n')
330-
|| items
331-
.iter()
332-
.find_map(|i| i.begin().matches(&src[idx..]))
333-
.is_some()
328+
src.is_char_boundary(idx)
329+
&& (idx == src.len()
330+
|| src[idx..].starts_with('\n')
331+
|| items
332+
.iter()
333+
.find_map(|i| i.begin().matches(&src[idx..]))
334+
.is_some())
334335
}) {
335336
// if it's not a range then it's a source line
336337
if end == 0 {
337338
Err("Failed to parse, for some random reason, pls lookie here")?;
338339
}
339-
Ok(ParseOutput::Source(&src[0..end]))
340+
Ok(ParseOutput::Source(&src[..end]))
340341
} else {
341342
Err("Failed to parse the rest.")?
342343
}

src/tests.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ mod simple_rust {
9090
// the platform to be present.
9191
fn main() {
9292
let c = 2;
93-
/* Multi-Line Comments
93+
/* Multi-Line Comments यह काम करना चाहिए
9494
seems to work as well */
95-
let src = "hello, World!";
96-
let src2 = r#"hello, World!"#;
95+
let यह = "hello, World!";
96+
let src = "Gello, World!";
97+
let src2 = r#"यह, काम!"#;
9798
return 0;
9899
}
99100
"##,

0 commit comments

Comments
 (0)