Mercurial > vim
comparison runtime/filetype.vim @ 26628:7efd8f561d04 v8.2.3843
patch 8.2.3843: dep3patch files are not recognized
Commit: https://github.com/vim/vim/commit/647ab4cede4dbf412d24748f8e0a64d1cb9239f4
Author: James McCoy <jamessan@jamessan.com>
Date: Fri Dec 17 20:52:57 2021 +0000
patch 8.2.3843: dep3patch files are not recognized
Problem: Dep3patch files are not recognized.
Solution: Recognize dep3patch files by their location and content. (James
McCoy, closes #9367)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Dec 2021 22:00:05 +0100 |
parents | 3a63b1e4a6f4 |
children | 4b8d0a62f78b |
comparison
equal
deleted
inserted
replaced
26627:a56abea18a57 | 26628:7efd8f561d04 |
---|---|
487 " Dict config | 487 " Dict config |
488 au BufNewFile,BufRead dict.conf,.dictrc setf dictconf | 488 au BufNewFile,BufRead dict.conf,.dictrc setf dictconf |
489 | 489 |
490 " Dictd config | 490 " Dictd config |
491 au BufNewFile,BufRead dictd*.conf setf dictdconf | 491 au BufNewFile,BufRead dictd*.conf setf dictdconf |
492 | |
493 " DEP3 formatted patch files | |
494 au BufNewFile,BufRead */debian/patches/* call dist#ft#Dep3patch() | |
492 | 495 |
493 " Diff files | 496 " Diff files |
494 au BufNewFile,BufRead *.diff,*.rej setf diff | 497 au BufNewFile,BufRead *.diff,*.rej setf diff |
495 au BufNewFile,BufRead *.patch | 498 au BufNewFile,BufRead *.patch |
496 \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' | | 499 \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' | |