diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-01 23:02:36 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-01 23:02:36 +0200 |
commit | f2ef4cedecf554c0c9f0694f93df1d53a57bf70c (patch) | |
tree | ee95ac48f56aee9607aa3c92fe478cf63f9c26b7 /scripts/test_extensions.vim | |
parent | 45c1923f43f2bb2e626fe910654d4395a0e50a04 (diff) | |
download | vim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.tar.gz vim-polyglot-f2ef4cedecf554c0c9f0694f93df1d53a57bf70c.zip |
Fix reason filetype detection, closes #532v4.7.1
Diffstat (limited to 'scripts/test_extensions.vim')
-rw-r--r-- | scripts/test_extensions.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/test_extensions.vim b/scripts/test_extensions.vim index cb52bef8..dfe2f3a3 100644 --- a/scripts/test_extensions.vim +++ b/scripts/test_extensions.vim @@ -207,3 +207,10 @@ call TestExtension('fsharp', 'fsharp.fs', "let myInt = 5") call TestExtension('glsl', 'glsl.fs', "//#version 120\nvoid main() {}") let g:filetype_fs = 'fizfuz' call TestExtension('fizfuz', 'fizfuz.fs', '') + +" .re extension +call TestExtension('reason', 'empty.re', '') +call TestExtension('cpp', 'cpp.re', '#include "config.h"') +call TestExtension('cpp', 'cpp2.re', '#ifdef HAVE_CONFIG_H') +call TestExtension('cpp', 'cpp3.re', '#define YYCTYPE unsigned char') +call TestExtension('reason', 'react.re', 'ReasonReact.Router.push("");') |