File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ function isStringEnd(lineInfo: LineInfo) {
37
37
const scope = lineInfo . scope . join ( " " )
38
38
return / \b s t r i n g \. m u l t i l i n e \. e n d \b / . test ( scope ) || ( / \b s t r i n g \. e n d \b / . test ( scope ) && / \b b a c k t i c k \b / . test ( scope ) )
39
39
}
40
- function isCont ( { line , scope } ) {
41
- scope = scope . join ( " " )
40
+ function isCont ( lineInfo : LineInfo ) {
41
+ const scope = lineInfo . scope . join ( " " )
42
42
if ( / \b s t r i n g \b / . test ( scope ) && ! / \b p u n c t u a t i o n \. d e f i n i t i o n \. s t r i n g \b / . test ( scope ) ) {
43
43
return true
44
44
}
45
45
46
- return line . match ( / ^ ( e l s e | e l s e i f | c a t c h | f i n a l l y ) \b / )
46
+ return lineInfo . line . match ( / ^ ( e l s e | e l s e i f | c a t c h | f i n a l l y ) \b / )
47
47
}
48
48
function isStart ( lineInfo ) {
49
49
return ! ( / ^ \s / . test ( lineInfo . line ) || isBlank ( lineInfo ) || isEnd ( lineInfo ) || isCont ( lineInfo ) )
You can’t perform that action at this time.
0 commit comments