Compare commits

...

2 Commits

Author SHA1 Message Date
Wilfred Hughes cc064349ac Raw string literals should be atoms in Rust 2025-11-22 17:15:28 +07:00
Wilfred Hughes 45373568a4 Add comments to all justfile recipes 2025-11-22 17:13:51 +07:00
3 changed files with 13 additions and 1 deletions

@ -1,5 +1,9 @@
## 0.68 (unreleased)
### Parsing
Fixed an issue with parsing raw string literals in Rust.
## 0.67 (released 16 November 2025)
### Parsing

@ -1,12 +1,15 @@
default:
@just --list
# Build and serve the manual.
doc:
cd manual && mdbook serve --open
# Run the output regression test.
compare:
sample_files/compare_all.sh
# Create a git tag and push it, to trigger a release on GitHub actions.
release:
#!/bin/bash
@ -18,10 +21,12 @@ release:
cargo set-version --bump minor
# Serve the homepage locally.
home:
echo "http://localhost:8080"
cd homepage && python -m http.server 8080
# Generate release notes for the currently unreleased version.
rel_notes:
#!/bin/bash
@ -29,5 +34,6 @@ rel_notes:
rg --max-count 1 -B 9999 "released " CHANGELOG.md | tail -n +3 | head -n -2 | awk 'BEGIN{RS="\n\n"; ORS="\n\n"} {gsub(/\n/, " "); print}'
# Regenerate the man page difft.1 from diff.1.md.
man:
pandoc --standalone --to man difft.1.md -o difft.1

@ -927,7 +927,9 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig {
TreeSitterConfig {
language: language.clone(),
atom_nodes: ["char_literal", "string_literal"].into_iter().collect(),
atom_nodes: ["char_literal", "string_literal", "raw_string_literal"]
.into_iter()
.collect(),
delimiter_tokens: vec![("{", "}"), ("(", ")"), ("[", "]"), ("|", "|"), ("<", ">")],
highlight_query: ts::Query::new(
&language,