From f689be5f630cf04f123f4f8d822fc0704b563698 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Mon, 18 Apr 2022 15:08:52 +0300 Subject: [PATCH] add Crystal support --- plugin/webdevicons.vim | 1 + test/filetype.vim | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/plugin/webdevicons.vim b/plugin/webdevicons.vim index 596ec68..4624c3d 100644 --- a/plugin/webdevicons.vim +++ b/plugin/webdevicons.vim @@ -188,6 +188,7 @@ function! s:setDictionaries() \ 'rb' : '', \ 'gemspec' : '', \ 'rake' : '', + \ 'cr' : '', \ 'php' : '', \ 'py' : '', \ 'pyc' : '', diff --git a/test/filetype.vim b/test/filetype.vim index f070a0a..ee6fe4e 100644 --- a/test/filetype.vim +++ b/test/filetype.vim @@ -29,6 +29,17 @@ function! s:suite.__OneArgument_RubyIcon__() endfor endfunction +function! s:suite.__OneArgument_CrystalIcon__() + let targetfilenames = ['test.cr'] + let expecticon = '' + let child = themis#suite('OneArgument_CrystalIcon') + + for targetfilename in targetfilenames + let child[targetfilename] = funcref('s:Assert', [targetfilename, expecticon]) + endfor +endfunction + + function! s:suite.__OneArgument_MarkDownIcon__() let targetfilenames = ['test.md', 'test.markdown', 'test.mdx', 'test.rmd'] let expecticon = ''