comparison src/testdir/test_filetype.vim @ 19607:d24e6844aabd v8.2.0360

patch 8.2.0360: yaml files are only recognized by the file extension Commit: https://github.com/vim/vim/commit/8eab73132838e977092d7b46f70b4ecf6274fd6a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 6 22:25:56 2020 +0100 patch 8.2.0360: yaml files are only recognized by the file extension Problem: Yaml files are only recognized by the file extension. Solution: Check for a line starting with "%YAML". (Jason Franklin)
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Mar 2020 22:30:04 +0100
parents cb73f4ae6b7c
children de7c724bf803
comparison
equal deleted inserted replaced
19606:53ee30ecdacf 19607:d24e6844aabd
599 \ 'cfengine': [['#!/path/cfengine']], 599 \ 'cfengine': [['#!/path/cfengine']],
600 \ 'erlang': [['#!/path/escript']], 600 \ 'erlang': [['#!/path/escript']],
601 \ 'haskell': [['#!/path/haskell']], 601 \ 'haskell': [['#!/path/haskell']],
602 \ 'cpp': [['// Standard iostream objects -*- C++ -*-'], 602 \ 'cpp': [['// Standard iostream objects -*- C++ -*-'],
603 \ ['// -*- C++ -*-']], 603 \ ['// -*- C++ -*-']],
604 \ 'yaml': [['%YAML 1.2']],
604 \ } 605 \ }
605 606
606 func Test_script_detection() 607 func Test_script_detection()
607 filetype on 608 filetype on
608 for [ft, files] in items(s:script_checks) 609 for [ft, files] in items(s:script_checks)