Mercurial > vim
comparison src/testdir/test_filetype.vim @ 30182:4d3c7b4927f2 v9.0.0427
patch 9.0.0427: Drupal theme files are not recognized
Commit: https://github.com/vim/vim/commit/8995c4cd4e697141faf74da9a87e0c1221bfb161
Author: Rodrigo Aguilera <hi@rodrigoaguilera.net>
Date: Fri Sep 9 16:10:26 2022 +0100
patch 9.0.0427: Drupal theme files are not recognized
Problem: Drupal theme files are not recognized.
Solution: Use php filetype for Drupl theme files. Remove trailing spaces.
(Rodrigo Aguilera, closes #11096)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Sep 2022 17:15:03 +0200 |
parents | 042513ec99d7 |
children | 381462ee23fd |
comparison
equal
deleted
inserted
replaced
30181:b6f2c4011ee1 | 30182:4d3c7b4927f2 |
---|---|
408 \ 'pcmk': ['file.pcmk'], | 408 \ 'pcmk': ['file.pcmk'], |
409 \ 'pdf': ['file.pdf'], | 409 \ 'pdf': ['file.pdf'], |
410 \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], | 410 \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], |
411 \ 'pf': ['pf.conf'], | 411 \ 'pf': ['pf.conf'], |
412 \ 'pfmain': ['main.cf'], | 412 \ 'pfmain': ['main.cf'], |
413 \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt'], | 413 \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt', 'file.theme'], |
414 \ 'pike': ['file.pike', 'file.pmod'], | 414 \ 'pike': ['file.pike', 'file.pmod'], |
415 \ 'pilrc': ['file.rcp'], | 415 \ 'pilrc': ['file.rcp'], |
416 \ 'pine': ['.pinerc', 'pinerc', '.pinercex', 'pinercex'], | 416 \ 'pine': ['.pinerc', 'pinerc', '.pinercex', 'pinercex'], |
417 \ 'pinfo': ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'], | 417 \ 'pinfo': ['/etc/pinforc', '/.pinforc', 'any/.pinforc', 'any/etc/pinforc'], |
418 \ 'pli': ['file.pli', 'file.pl1'], | 418 \ 'pli': ['file.pli', 'file.pl1'], |
533 \ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'], | 533 \ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'], |
534 \ 'st': ['file.st'], | 534 \ 'st': ['file.st'], |
535 \ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'], | 535 \ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'], |
536 \ 'stp': ['file.stp'], | 536 \ 'stp': ['file.stp'], |
537 \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'], | 537 \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'], |
538 \ 'supercollider': ['file.quark'], | 538 \ 'supercollider': ['file.quark'], |
539 \ 'surface': ['file.sface'], | 539 \ 'surface': ['file.sface'], |
540 \ 'svelte': ['file.svelte'], | 540 \ 'svelte': ['file.svelte'], |
541 \ 'svg': ['file.svg'], | 541 \ 'svg': ['file.svg'], |
542 \ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'], | 542 \ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'], |
543 \ 'swayconfig': ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'], | 543 \ 'swayconfig': ['/home/user/.sway/config', '/home/user/.config/sway/config', '/etc/sway/config', '/etc/xdg/sway/config'], |
1353 split modfile.mod | 1353 split modfile.mod |
1354 call assert_equal('lprolog', &filetype) | 1354 call assert_equal('lprolog', &filetype) |
1355 unlet g:filetype_mod | 1355 unlet g:filetype_mod |
1356 bwipe! | 1356 bwipe! |
1357 | 1357 |
1358 " RAPID header start with a line containing only "%%%", | 1358 " RAPID header start with a line containing only "%%%", |
1359 " but is not always present. | 1359 " but is not always present. |
1360 call writefile(['%%%'], 'modfile.mod') | 1360 call writefile(['%%%'], 'modfile.mod') |
1361 split modfile.mod | 1361 split modfile.mod |
1362 call assert_equal('rapid', &filetype) | 1362 call assert_equal('rapid', &filetype) |
1363 bwipe! | 1363 bwipe! |
1369 split modfile.Mod | 1369 split modfile.Mod |
1370 call assert_equal('rapid', &filetype) | 1370 call assert_equal('rapid', &filetype) |
1371 bwipe! | 1371 bwipe! |
1372 call delete('modfile.Mod') | 1372 call delete('modfile.Mod') |
1373 | 1373 |
1374 " RAPID is not case sensitive, embedded spaces, sysmodule, | 1374 " RAPID is not case sensitive, embedded spaces, sysmodule, |
1375 " file starts with empty line(s). | 1375 " file starts with empty line(s). |
1376 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'modfile.MOD') | 1376 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'modfile.MOD') |
1377 split modfile.MOD | 1377 split modfile.MOD |
1378 call assert_equal('rapid', &filetype) | 1378 call assert_equal('rapid', &filetype) |
1379 bwipe! | 1379 bwipe! |
1497 split prgfile.prg | 1497 split prgfile.prg |
1498 call assert_equal('eviews', &filetype) | 1498 call assert_equal('eviews', &filetype) |
1499 unlet g:filetype_prg | 1499 unlet g:filetype_prg |
1500 bwipe! | 1500 bwipe! |
1501 | 1501 |
1502 " RAPID header start with a line containing only "%%%", | 1502 " RAPID header start with a line containing only "%%%", |
1503 " but is not always present. | 1503 " but is not always present. |
1504 call writefile(['%%%'], 'prgfile.prg') | 1504 call writefile(['%%%'], 'prgfile.prg') |
1505 split prgfile.prg | 1505 split prgfile.prg |
1506 call assert_equal('rapid', &filetype) | 1506 call assert_equal('rapid', &filetype) |
1507 bwipe! | 1507 bwipe! |
1513 split prgfile.Prg | 1513 split prgfile.Prg |
1514 call assert_equal('rapid', &filetype) | 1514 call assert_equal('rapid', &filetype) |
1515 bwipe! | 1515 bwipe! |
1516 call delete('prgfile.Prg') | 1516 call delete('prgfile.Prg') |
1517 | 1517 |
1518 " RAPID is not case sensitive, embedded spaces, sysmodule, | 1518 " RAPID is not case sensitive, embedded spaces, sysmodule, |
1519 " file starts with empty line(s). | 1519 " file starts with empty line(s). |
1520 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'prgfile.PRG') | 1520 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'prgfile.PRG') |
1521 split prgfile.PRG | 1521 split prgfile.PRG |
1522 call assert_equal('rapid', &filetype) | 1522 call assert_equal('rapid', &filetype) |
1523 bwipe! | 1523 bwipe! |
1624 split sysfile.sys | 1624 split sysfile.sys |
1625 call assert_equal('sys', &filetype) | 1625 call assert_equal('sys', &filetype) |
1626 unlet g:filetype_sys | 1626 unlet g:filetype_sys |
1627 bwipe! | 1627 bwipe! |
1628 | 1628 |
1629 " RAPID header start with a line containing only "%%%", | 1629 " RAPID header start with a line containing only "%%%", |
1630 " but is not always present. | 1630 " but is not always present. |
1631 call writefile(['%%%'], 'sysfile.sys') | 1631 call writefile(['%%%'], 'sysfile.sys') |
1632 split sysfile.sys | 1632 split sysfile.sys |
1633 call assert_equal('rapid', &filetype) | 1633 call assert_equal('rapid', &filetype) |
1634 bwipe! | 1634 bwipe! |
1640 split sysfile.Sys | 1640 split sysfile.Sys |
1641 call assert_equal('rapid', &filetype) | 1641 call assert_equal('rapid', &filetype) |
1642 bwipe! | 1642 bwipe! |
1643 call delete('sysfile.Sys') | 1643 call delete('sysfile.Sys') |
1644 | 1644 |
1645 " RAPID is not case sensitive, embedded spaces, sysmodule, | 1645 " RAPID is not case sensitive, embedded spaces, sysmodule, |
1646 " file starts with empty line(s). | 1646 " file starts with empty line(s). |
1647 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'sysfile.SYS') | 1647 call writefile(['', 'MODULE rapidmödüle (SYSMODULE,NOSTEPIN)'], 'sysfile.SYS') |
1648 split sysfile.SYS | 1648 split sysfile.SYS |
1649 call assert_equal('rapid', &filetype) | 1649 call assert_equal('rapid', &filetype) |
1650 bwipe! | 1650 bwipe! |