Mercurial > vim
comparison runtime/autoload/dist/ft.vim @ 27972:9c0b7953016e v8.2.4511
patch 8.2.4511: filetype test fails
Commit: https://github.com/vim/vim/commit/c12dc47b8f80c02e4fdcdb38b8217e1c06a11368
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 5 13:45:56 2022 +0000
patch 8.2.4511: filetype test fails
Problem: Filetype test fails.
Solution: Change "endw" to "endwhile".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Mar 2022 15:00:03 +0100 |
parents | d19b7aee1925 |
children | c968191a8557 |
comparison
equal
deleted
inserted
replaced
27971:2be05b18f160 | 27972:9c0b7953016e |
---|---|
180 # Not a blank line, not a comment, and not a block start, | 180 # Not a blank line, not a comment, and not a block start, |
181 # so doesn't look like valid cl code. | 181 # so doesn't look like valid cl code. |
182 break | 182 break |
183 endif | 183 endif |
184 lnum += 1 | 184 lnum += 1 |
185 endw | 185 endwhile |
186 setf dtd | 186 setf dtd |
187 enddef | 187 enddef |
188 | 188 |
189 export def ExCheck() | 189 export def ExCheck() |
190 var lines = getline(1, min([line("$"), 100])) | 190 var lines = getline(1, min([line("$"), 100])) |
480 # Not an empty line: Doesn't look like valid assembly code. | 480 # Not an empty line: Doesn't look like valid assembly code. |
481 # Or it looks like a Progress /* comment | 481 # Or it looks like a Progress /* comment |
482 break | 482 break |
483 endif | 483 endif |
484 lnum += 1 | 484 lnum += 1 |
485 endw | 485 endwhile |
486 setf progress | 486 setf progress |
487 enddef | 487 enddef |
488 | 488 |
489 var ft_pascal_comments = '^\s*\%({\|(\*\|//\)' | 489 var ft_pascal_comments = '^\s*\%({\|(\*\|//\)' |
490 var ft_pascal_keywords = '^\s*\%(program\|unit\|library\|uses\|begin\|procedure\|function\|const\|type\|var\)\>' | 490 var ft_pascal_keywords = '^\s*\%(program\|unit\|library\|uses\|begin\|procedure\|function\|const\|type\|var\)\>' |
507 # Not an empty line: Doesn't look like valid Pascal code. | 507 # Not an empty line: Doesn't look like valid Pascal code. |
508 # Or it looks like a Progress /* comment | 508 # Or it looks like a Progress /* comment |
509 break | 509 break |
510 endif | 510 endif |
511 lnum += 1 | 511 lnum += 1 |
512 endw | 512 endwhile |
513 setf progress | 513 setf progress |
514 enddef | 514 enddef |
515 | 515 |
516 export def FTpp() | 516 export def FTpp() |
517 if exists("g:filetype_pp") | 517 if exists("g:filetype_pp") |