- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 741
 
          fix(parse/tailwind): fix lexing inset-x, border-slate-500, and others
          #7975
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
          
 | 
    
          
 This stack of pull requests is managed by Graphite. Learn more about stacking.  | 
    
          
WalkthroughThis PR modifies the Tailwind lexer's base name consumption logic to add boundary validation, ensuring a matched base is emitted as a token only when followed by a dash, whitespace, or end of input. Five new dash-containing utility names are registered in the metadata: break-after, break-before, inset-x, inset-y, and mix-blend. Multiple test fixtures are added to validate parsing of inset, spacing, border, and mixed utility classes with bracketed arbitrary values and responsive/state variations. Possibly related PRs
 Suggested reviewers
 Pre-merge checks and finishing touches✅ Passed checks (2 passed)
 ✨ Finishing touches
 🧪 Generate unit tests (beta)
 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (5)
 📒 Files selected for processing (7)
 🧰 Additional context used📓 Path-based instructions (2)**/*.{rs,toml}📄 CodeRabbit inference engine (CONTRIBUTING.md) 
 Files: 
 **/*.rs📄 CodeRabbit inference engine (CONTRIBUTING.md) 
 Files: 
 🧠 Learnings (9)📚 Learning: 2025-10-15T09:22:15.851ZApplied to files: 
 📚 Learning: 2025-10-15T09:22:15.851ZApplied to files: 
 📚 Learning: 2025-10-15T09:22:15.851ZApplied to files: 
 📚 Learning: 2025-10-15T09:22:46.002ZApplied to files: 
 📚 Learning: 2025-10-15T09:24:31.042ZApplied to files: 
 📚 Learning: 2025-10-25T07:22:18.540ZApplied to files: 
 📚 Learning: 2025-10-15T09:22:46.002ZApplied to files: 
 📚 Learning: 2025-10-15T09:22:46.002ZApplied to files: 
 📚 Learning: 2025-10-15T09:24:31.042ZApplied to files: 
 🪛 LanguageToolcrates/biome_tailwind_parser/tests/tailwind_specs/ok/stress/stress-3.txt[uncategorized] ~59-~59: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’. (HYPHENATED_LY_ADVERB_ADJECTIVE) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
 🔇 Additional comments (7)
 Comment   | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I would remove the stress file from the usual testing suite for performance reasons
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to use this in codspeed? Otherwise everyone would need to run this every time, who knows how long it takes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough, ill remove it

Summary
Fixes misc lexing bugs
inset-xandinset-ywere missingborder-slate-500would get aggressively interpreted asborder-sas the base name, when it should beborder.Test Plan
added tests
Docs