mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-21 00:58:34 +08:00
Fix #4505 - Handle spaces in markdown fences
This commit is contained in:
@@ -117,7 +117,7 @@ function! ale#hover#ParseLSPResult(contents) abort
|
||||
for l:line in split(l:item, "\n")
|
||||
if l:fence_language is v:null
|
||||
" Look for the start of a code fence. (```python, etc.)
|
||||
let l:match = matchlist(l:line, '^```\(.*\)$')
|
||||
let l:match = matchlist(l:line, '^``` *\([^ ]\+\) *$')
|
||||
|
||||
if !empty(l:match)
|
||||
let l:fence_language = l:match[1]
|
||||
|
||||
Reference in New Issue
Block a user