]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(filetype): fix incorrect pattern and break early
authorzeertzjq <zeertzjq@outlook.com>
Wed, 9 Jul 2025 16:23:14 +0000 (18:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 9 Jul 2025 16:23:52 +0000 (18:23 +0200)
commit41ee98c3c5342867cb99dfcddbe8d53caeda22db
treef601f875017e775b14e1ca45509e931f2e131d68
parentbda55df3b8919c70c006f55b23d926555ad06088
runtime(filetype): fix incorrect pattern and break early

- Using `\n` is incorrect, as result of getline() does not contain line
  breaks and only uses `\n` for NUL bytes.
- Return when b:asmsyntax is set, like many other filetypes.

closes: #17706

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim