File tree 4 files changed +4
-3
lines changed
tailwindcss-language-service/src
4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const PATTERN_CUSTOM_V3 = /@(?<directive>config)\s*(?<partial>'[^']*|"[^"]*)$/
7
7
// @import … source('…')
8
8
// @tailwind utilities source('…')
9
9
const PATTERN_IMPORT_SOURCE =
10
- / @ (?< directive > (?: i m p o r t | r e f e r e n c e ) ) \s * (?< path > ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * s o u r c e \( (?< partial > ' [ ^ ' ] * | " [ ^ " ] * ) $ /
10
+ / @ (?< directive > (?: i m p o r t | r e f e r e n c e ) ) \s * (?< path > ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * ( l a y e r \( [ ^ ) ] + \) \s * ) ? s o u r c e \( (?< partial > ' [ ^ ' ] * | " [ ^ " ] * ) $ /
11
11
const PATTERN_UTIL_SOURCE =
12
12
/ @ (?< directive > t a i l w i n d ) \s + u t i l i t i e s \s + s o u r c e \( (?< partial > ' [ ^ ' ] * | " [ ^ " ] * ) ? $ /
13
13
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { absoluteRange } from '../util/absoluteRange'
8
8
// @import … source('…')
9
9
// @tailwind utilities source('…')
10
10
const PATTERN_IMPORT_SOURCE =
11
- / (?: \s | ^ ) @ (?< directive > (?: i m p o r t | r e f e r e n c e ) ) \s * (?< path > ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * s o u r c e \( (?< source > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? | [ a - z ] * | \) | ; ) / dg
11
+ / (?: \s | ^ ) @ (?< directive > (?: i m p o r t | r e f e r e n c e ) ) \s * (?< path > ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * ( l a y e r \( [ ^ ) ] + \) \s * ) ? s o u r c e \( (?< source > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? | [ a - z ] * | \) | ; ) / dg
12
12
const PATTERN_UTIL_SOURCE =
13
13
/ (?: \s | ^ ) @ (?< directive > t a i l w i n d ) \s + (?< layer > \S + ) \s + s o u r c e \( (?< source > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? | [ a - z ] * | \) | ; ) / dg
14
14
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export function getDocumentLinks(
19
19
patterns . push (
20
20
/ @ p l u g i n \s * (?< path > ' [ ^ ' ] + ' | " [ ^ " ] + " ) / g,
21
21
/ @ s o u r c e \s * (?< path > ' [ ^ ' ] + ' | " [ ^ " ] + " ) / g,
22
- / @ i m p o r t \s * ( ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * s o u r c e \( (?< path > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? ) / g,
22
+ / @ i m p o r t \s * ( ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * ( l a y e r \( [ ^ ) ] + \) \s * ) ? s o u r c e \( (?< path > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? ) / g,
23
23
/ @ r e f e r e n c e \s * ( ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * s o u r c e \( (?< path > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? ) / g,
24
24
/ @ t a i l w i n d \s * u t i l i t i e s \s * s o u r c e \( (?< path > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? ) / g,
25
25
)
Original file line number Diff line number Diff line change 4
4
5
5
- Show light color swatch from light-dark() functions ([ #1199 ] ( https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1199 ) )
6
6
- Ignore comments when matching class attributes ([ #1202 ] ( https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1202 ) )
7
+ - Show source diagnostics when imports contain a layer ([ #1204 ] ( https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1204 ) )
7
8
8
9
## 0.14.4
9
10
You can’t perform that action at this time.
0 commit comments