@@ -271,29 +271,3 @@ func checkMultiLineString(trimmedLine string, inCodeBlock bool) (bool, bool) {
271
271
}
272
272
return inCodeBlock , foundDocstringMarker
273
273
}
274
-
275
- // checkMultiLineString2 detects and updates the inCodeBlock state.
276
- // For languages like Nim, Mojo, Python and Starlark.
277
- func checkMultiLineString2 (trimmedLine string , inCodeBlock bool ) (bool , bool ) {
278
- foundDocstringMarker := false
279
- if trimmedLine == "return \" \" \" " || trimmedLine == "return '''" {
280
- inCodeBlock = true
281
- foundDocstringMarker = false
282
- } else if trimmedLine == "\" \" \" " || trimmedLine == "'''" { // only 3 letters
283
- inCodeBlock = ! inCodeBlock
284
- foundDocstringMarker = true
285
- } else if strings .HasPrefix (trimmedLine , "\" \" \" " ) && strings .HasSuffix (trimmedLine , "\" \" \" " ) {
286
- inCodeBlock = false
287
- foundDocstringMarker = true
288
- } else if strings .HasPrefix (trimmedLine , "'''" ) && strings .HasSuffix (trimmedLine , "'''" ) {
289
- inCodeBlock = false
290
- foundDocstringMarker = true
291
- } else if strings .HasPrefix (trimmedLine , "\" \" \" " ) || strings .HasPrefix (trimmedLine , "'''" ) {
292
- inCodeBlock = ! inCodeBlock
293
- foundDocstringMarker = true
294
- } else if strings .HasSuffix (trimmedLine , "\" \" \" " ) || strings .HasSuffix (trimmedLine , "'''" ) {
295
- inCodeBlock = ! inCodeBlock
296
- foundDocstringMarker = true
297
- }
298
- return inCodeBlock , foundDocstringMarker
299
- }
0 commit comments