File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ - Fix trailing ) from interfering with extraction in Clojure keywords ( [ # 18345 ] ( https://github.com/tailwindlabs/tailwindcss/pull/18345 ) )
11
11
12
12
## [ 4.1.11] - 2025-06-26
13
13
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ use bstr::ByteSlice;
6
6
pub struct Clojure ;
7
7
8
8
#[ inline]
9
- fn is_keyword_terminator ( byte : u8 ) -> bool {
9
+ fn is_keyword_character ( byte : u8 ) -> bool {
10
10
matches ! (
11
11
byte,
12
- b'" ' | b'; ' | b'@ ' | b'^ ' | b'` ' | b'~ ' | b'( ' | b') ' | b'[' | b']' | b'{' | b'}' | b'\\ '
13
- ) || byte. is_ascii_whitespace ( )
12
+ b'+ ' | b'- ' | b'/ ' | b'* ' | b'_ ' | b'# ' | b'. ' | b': ' | b'? '
13
+ ) | byte. is_ascii_alphanumeric ( )
14
14
}
15
15
16
16
impl PreProcessor for Clojure {
@@ -58,10 +58,9 @@ impl PreProcessor for Clojure {
58
58
// Consume keyword until a terminating character is reached.
59
59
b':' => {
60
60
result[ cursor. pos ] = b' ' ;
61
+ cursor. advance ( ) ;
61
62
62
63
while cursor. pos < len {
63
- cursor. advance ( ) ;
64
-
65
64
match cursor. curr {
66
65
// A `.` surrounded by digits is a decimal number, so we don't want to replace it.
67
66
//
@@ -87,14 +86,16 @@ impl PreProcessor for Clojure {
87
86
result[ cursor. pos ] = b' ' ;
88
87
}
89
88
// End of keyword.
90
- _ if is_keyword_terminator ( cursor. curr ) => {
89
+ _ if ! is_keyword_character ( cursor. curr ) => {
91
90
result[ cursor. pos ] = b' ' ;
92
91
break ;
93
92
}
94
93
95
94
// Consume everything else.
96
95
_ => { }
97
96
} ;
97
+
98
+ cursor. advance ( ) ;
98
99
}
99
100
}
100
101
You can’t perform that action at this time.
0 commit comments