parent
1db371f776
commit
a17462708a
@ -14,6 +14,7 @@ function! s:guess(lines) abort
|
|||||||
let ccomment = 0
|
let ccomment = 0
|
||||||
let podcomment = 0
|
let podcomment = 0
|
||||||
let triplequote = 0
|
let triplequote = 0
|
||||||
|
let backtick = 0
|
||||||
|
|
||||||
for line in a:lines
|
for line in a:lines
|
||||||
|
|
||||||
@ -50,6 +51,15 @@ function! s:guess(lines) abort
|
|||||||
let triplequote = 1
|
let triplequote = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if backtick
|
||||||
|
if line =~# '^[^`]*`[^`]*$'
|
||||||
|
let backtick = 0
|
||||||
|
endif
|
||||||
|
continue
|
||||||
|
elseif line =~# '^[^`]*`[^`]*$'
|
||||||
|
let backtick = 1
|
||||||
|
endif
|
||||||
|
|
||||||
let softtab = repeat(' ', 8)
|
let softtab = repeat(' ', 8)
|
||||||
if line =~# '^\t'
|
if line =~# '^\t'
|
||||||
let heuristics.hard += 1
|
let heuristics.hard += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user