summaryrefslogtreecommitdiffstats
path: root/scripts/test
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/test_extensions.vim7
-rw-r--r--scripts/test_filetypes.vim2
2 files changed, 8 insertions, 1 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("");')
diff --git a/scripts/test_filetypes.vim b/scripts/test_filetypes.vim
index 86e2ff36..d0bec4cc 100644
--- a/scripts/test_filetypes.vim
+++ b/scripts/test_filetypes.vim
@@ -44,6 +44,7 @@ call TestFiletype('atlas')
call TestFiletype('autoit')
call TestFiletype('ave')
call TestFiletype('awk')
+call TestFiletype('reason')
call TestFiletype('c')
call TestFiletype('cpp')
call TestFiletype('caddyfile')
@@ -175,7 +176,6 @@ call TestFiletype('ragel')
call TestFiletype('raku')
call TestFiletype('raml')
call TestFiletype('razor')
-call TestFiletype('reason')
call TestFiletype('rst')
call TestFiletype('ruby')
call TestFiletype('eruby')