We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2830ae commit 7a268daCopy full SHA for 7a268da
internal/logger/logger.go
@@ -388,6 +388,20 @@ func (s *Source) RangeOfString(loc Loc) Range {
388
}
389
390
391
+ if quote == '`' {
392
+ // Search for the matching quote character
393
+ for i := 1; i < len(text); i++ {
394
+ c := text[i]
395
+ if c == quote {
396
+ return Range{Loc: loc, Len: int32(i + 1)}
397
+ } else if c == '\\' {
398
+ i += 1
399
+ } else if c == '$' && i+1 < len(text) && text[i+1] == '{' {
400
+ break // Only return the range for no-substitution template literals
401
+ }
402
403
404
+
405
return Range{Loc: loc, Len: 0}
406
407
0 commit comments