0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.3679: objc file detected as Octave

Problem:    objc file detected as Octave. (Antony Lee)
Solution:   Detect objc by preprocessor lines. (Doug Kearns, closes #9223,
            closes #9220)
This commit is contained in:
Doug Kearns
2021-11-26 13:01:41 +00:00
committed by Bram Moolenaar
parent 85be8563fe
commit 7329cfab36
3 changed files with 15 additions and 1 deletions

View File

@@ -891,6 +891,16 @@ func Test_m_file()
call assert_equal('objc', &filetype)
bwipe!
call writefile(['#include <header.h>'], 'Xfile.m')
split Xfile.m
call assert_equal('objc', &filetype)
bwipe!
call writefile(['#define FORTY_TWO'], 'Xfile.m')
split Xfile.m
call assert_equal('objc', &filetype)
bwipe!
" Octave
call writefile(['# Octave line comment'], 'Xfile.m')

View File

@@ -757,6 +757,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3679,
/**/
3678,
/**/