File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed
tailwindcss-language-service/src Expand file tree Collapse file tree 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>'[^']*|"[^"]*)$/
77// @import … source('…')
88// @tailwind utilities source('…')
99const 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 > ' [ ^ ' ] * | " [ ^ " ] * ) $ /
1111const PATTERN_UTIL_SOURCE =
1212 / @ (?< 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 > ' [ ^ ' ] * | " [ ^ " ] * ) ? $ /
1313
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { absoluteRange } from '../util/absoluteRange'
88// @import … source('…')
99// @tailwind utilities source('…')
1010const 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
1212const PATTERN_UTIL_SOURCE =
1313 / (?: \s | ^ ) @ (?< directive > t a i l w i n d ) \s + (?< layer > \S + ) \s + s o u r c e \( (?< source > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? | [ a - z ] * | \) | ; ) / dg
1414
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export function getDocumentLinks(
1919 patterns . push (
2020 / @ p l u g i n \s * (?< path > ' [ ^ ' ] + ' | " [ ^ " ] + " ) / g,
2121 / @ 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,
2323 / @ r e f e r e n c e \s * ( ' [ ^ ' ] * ' | " [ ^ " ] * " ) \s * s o u r c e \( (?< path > ' [ ^ ' ] * ' ? | " [ ^ " ] * " ? ) / g,
2424 / @ 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,
2525 )
Original file line number Diff line number Diff line change 44
55- Show light color swatch from light-dark() functions ([ #1199 ] ( https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1199 ) )
66- 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 ) )
78
89## 0.14.4
910
You can’t perform that action at this time.
0 commit comments