@@ -4,7 +4,7 @@ import { transformerNotationDiff, transformerNotationFocus, transformerNotationH
44
55describe ( 'multi-token comment support' , ( ) => {
66 it ( 'transformerNotationDiff works with rose-pine theme (multi-token comments)' , async ( ) => {
7- const highlighter = await createHighlighter ( {
7+ using highlighter = await createHighlighter ( {
88 themes : [ 'rose-pine' ] ,
99 langs : [ 'javascript' ] ,
1010 } )
@@ -25,7 +25,7 @@ describe('multi-token comment support', () => {
2525 } )
2626
2727 it ( 'transformerNotationDiff still works with dracula theme (single-token comments)' , async ( ) => {
28- const highlighter = await createHighlighter ( {
28+ using highlighter = await createHighlighter ( {
2929 themes : [ 'dracula' ] ,
3030 langs : [ 'javascript' ] ,
3131 } )
@@ -46,7 +46,7 @@ describe('multi-token comment support', () => {
4646 } )
4747
4848 it ( 'transformerNotationDiff works with rose-pine theme for add notation' , async ( ) => {
49- const highlighter = await createHighlighter ( {
49+ using highlighter = await createHighlighter ( {
5050 themes : [ 'rose-pine' ] ,
5151 langs : [ 'javascript' ] ,
5252 } )
@@ -65,7 +65,7 @@ describe('multi-token comment support', () => {
6565 } )
6666
6767 it ( 'transformerNotationHighlight works with rose-pine theme' , async ( ) => {
68- const highlighter = await createHighlighter ( {
68+ using highlighter = await createHighlighter ( {
6969 themes : [ 'rose-pine' ] ,
7070 langs : [ 'javascript' ] ,
7171 } )
@@ -83,7 +83,7 @@ describe('multi-token comment support', () => {
8383 } )
8484
8585 it ( 'transformerNotationFocus works with rose-pine theme' , async ( ) => {
86- const highlighter = await createHighlighter ( {
86+ using highlighter = await createHighlighter ( {
8787 themes : [ 'rose-pine' ] ,
8888 langs : [ 'javascript' ] ,
8989 } )
@@ -101,7 +101,7 @@ describe('multi-token comment support', () => {
101101 } )
102102
103103 it ( 'handles multi-line code with mixed single and multi-token comments' , async ( ) => {
104- const highlighter = await createHighlighter ( {
104+ using highlighter = await createHighlighter ( {
105105 themes : [ 'rose-pine' ] ,
106106 langs : [ 'javascript' ] ,
107107 } )
@@ -124,7 +124,7 @@ const c = 3 // [!code highlight]`
124124 } )
125125
126126 it ( 'handles edge case where comment does not match pattern' , async ( ) => {
127- const highlighter = await createHighlighter ( {
127+ using highlighter = await createHighlighter ( {
128128 themes : [ 'rose-pine' ] ,
129129 langs : [ 'javascript' ] ,
130130 } )
@@ -145,7 +145,7 @@ const c = 3 // [!code highlight]`
145145 } )
146146
147147 it ( 'handles single token without multi-token fallback' , async ( ) => {
148- const highlighter = await createHighlighter ( {
148+ using highlighter = await createHighlighter ( {
149149 themes : [ 'rose-pine' ] ,
150150 langs : [ 'javascript' ] ,
151151 } )
@@ -163,7 +163,7 @@ const c = 3 // [!code highlight]`
163163 } )
164164
165165 it ( 'handles JSX parsing without notation' , async ( ) => {
166- const highlighter = await createHighlighter ( {
166+ using highlighter = await createHighlighter ( {
167167 themes : [ 'rose-pine' ] ,
168168 langs : [ 'jsx' ] ,
169169 } )
@@ -181,7 +181,7 @@ const c = 3 // [!code highlight]`
181181 } )
182182
183183 it ( 'handles v1 match algorithm' , async ( ) => {
184- const highlighter = await createHighlighter ( {
184+ using highlighter = await createHighlighter ( {
185185 themes : [ 'rose-pine' ] ,
186186 langs : [ 'javascript' ] ,
187187 } )
@@ -200,7 +200,7 @@ const c = 3 // [!code highlight]`
200200 } )
201201
202202 it ( 'handles actual multi-token comment scenario from rose-pine theme' , async ( ) => {
203- const highlighter = await createHighlighter ( {
203+ using highlighter = await createHighlighter ( {
204204 themes : [ 'rose-pine' ] ,
205205 langs : [ 'javascript' ] ,
206206 } )
0 commit comments