summaryrefslogtreecommitdiff
path: root/test/test_hover_parsing.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-16 23:04:46 +0100
committerw0rp <devw0rp@gmail.com>2023-09-16 23:04:46 +0100
commitdca621b6755a47469c94ee8fd26f390e34804077 (patch)
treee5eecd18cc725ce379233efdcbfbe277c12004bf /test/test_hover_parsing.vader
parente412fa34ff172b4101893aacab94be31992fb5c6 (diff)
downloadale-dca621b6755a47469c94ee8fd26f390e34804077.zip
Fix #4505 - Handle spaces in markdown fences
Diffstat (limited to 'test/test_hover_parsing.vader')
-rw-r--r--test/test_hover_parsing.vader23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_hover_parsing.vader b/test/test_hover_parsing.vader
index 221b42ac..81db1da3 100644
--- a/test/test_hover_parsing.vader
+++ b/test/test_hover_parsing.vader
@@ -172,6 +172,29 @@ Execute(Simple markdown formatting should be handled):
\ 'formatted \_ line \_',
\ ], "\n"))
+Execute(Fences padded with spaces should be handled):
+ AssertEqual
+ \ [
+ \ [
+ \ 'unlet! b:current_syntax',
+ \ 'syntax include @ALE_hover_python syntax/python.vim',
+ \ 'syntax region ALE_hover_1 start=/\%1l/ end=/\%3l/ contains=@ALE_hover_python',
+ \ ],
+ \ [
+ \ 'def foo():',
+ \ ' pass',
+ \ '',
+ \ 'formatted _ line _',
+ \ ],
+ \ ],
+ \ ale#hover#ParseLSPResult(join([
+ \ '``` python ',
+ \ 'def foo():',
+ \ ' pass',
+ \ '```',
+ \ 'formatted \_ line \_',
+ \ ], "\n"))
+
Execute(Non-existent syntax files shouldn't be loaded):
AssertEqual
\ [