tailwindcss/crates/oxide/src
Robin Malfait bf2e2fe08a
Extract classes from interpolated expressions in Ruby (#19730)
This PR ensures that interpolated expressions in Ruby syntax are
correctly extracted.

The issue was that we ignore comments in Ruby syntax (which start with
`#`). We already made an exception for locals (`<%# locals: … %>`), but
we also need to handle interpolated expressions (`#{ … }`) in the same
way because they are not comments.

Fixes: #19728

## Test plan

1. Existing tests pass
2. Added a regression test for this scenario
3. Tested using the extractor on the given code snippet:

<img width="1461" height="1856" alt="image"
src="https://github.com/user-attachments/assets/b48f7042-ca9d-4133-87ae-4c37c633c073"
/>

Notice that the `w-100` gets extracted now.
2026-02-26 12:23:50 +01:00
..
extractor Extract classes from interpolated expressions in Ruby (#19730) 2026-02-26 12:23:50 +01:00
fixtures Improve Oxide candidate extractor [0] (#16306) 2025-03-05 11:55:24 +01:00
scanner Improve performance in bigger projects (#19632) 2026-02-17 20:15:20 +01:00
cursor.rs Improve performance in bigger projects (#19632) 2026-02-17 20:15:20 +01:00
fast_skip.rs Improve performance in bigger projects (#19632) 2026-02-17 20:15:20 +01:00
glob.rs A bit of cleanup (#17394) 2025-03-26 12:08:53 -04:00
lib.rs Add @source not support (#17255) 2025-03-25 15:54:41 +01:00
main.rs Improve Oxide candidate extractor [0] (#16306) 2025-03-05 11:55:24 +01:00
paths.rs Fix integration tests on Windows (#14824) 2024-10-30 11:26:29 +00:00
throughput.rs Improve Oxide candidate extractor [0] (#16306) 2025-03-05 11:55:24 +01:00