File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ All notable changes to the extension will be documented in this file.
44
55## [ 1.14.0] - 2023-12-
66
7+ - Initial support for lit css
78- Match on patterns with a colon in addition to equals.
89- Ported to rollup.
910- Updated dependencies.
Original file line number Diff line number Diff line change 3636 " angular" ,
3737 " react" ,
3838 " vue" ,
39+ " lit" ,
3940 " multi-root ready"
4041 ],
4142 "activationEvents" : [
Original file line number Diff line number Diff line change @@ -154,12 +154,12 @@ export class SelectorCompletionItemProvider
154154 findEmbedded ( uri : Uri , keys : Set < string > , text : string ) {
155155 const key = uri . toString ( ) ;
156156 const items : CompletionItem [ ] = [ ] ;
157- const findStyles = / < s t y l e [ ^ > ] * > ( [ ^ < ] + ) < \/ s t y l e > / gi;
157+ const findStyles = / (?: < s t y l e [ ^ > ] * > ( [ ^ < ] + ) < \/ s t y l e > | c s s \s * ` ( [ ^ ` ] + ) ` ) / gi;
158158
159159 let style ;
160160
161161 while ( ( style = findStyles . exec ( text ) ) !== null ) {
162- this . parseTextToItems ( basename ( uri . fsPath ) , style [ 1 ] , items ) ;
162+ this . parseTextToItems ( basename ( uri . fsPath ) , style [ 1 ] || style [ 2 ] , items ) ;
163163 }
164164
165165 this . cache . set ( key , items ) ;
You can’t perform that action at this time.
0 commit comments