diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-01 17:18:25 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-01-01 17:18:25 +0100 |
commit | 2ab0b0a56a7bd1d39060f3def3c0843bb4d3a095 (patch) | |
tree | 29f0cadf91f7a86879818479b45726c97bc5ddbb | |
parent | 37bc36ac42c00757cf06ea271f8206aec50632a2 (diff) | |
download | vim-polyglot-2ab0b0a56a7bd1d39060f3def3c0843bb4d3a095.tar.gz vim-polyglot-2ab0b0a56a7bd1d39060f3def3c0843bb4d3a095.zip |
Add cson extension to coffeescript, closes #639
Co-authored-by: Collin Styles <collin.styles@mycase.com>
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | autoload/polyglot/sleuth.vim | 2 | ||||
-rw-r--r-- | ftdetect/polyglot.vim | 2 | ||||
-rw-r--r-- | packages.yaml | 1 |
4 files changed, 4 insertions, 3 deletions
@@ -59,7 +59,7 @@ On top of all language packs from [vim repository](https://github.com/vim/vim/tr - [cjsx](https://github.com/mtscout6/vim-cjsx) - [clojure](https://github.com/guns/vim-clojure-static) (Clojure syntax highlighting for clj, boot, cl2, cljc, cljs, cljs.hl, cljscm, cljx, hic and edn files) - [cmake](https://github.com/pboettch/vim-cmake-syntax) (CMake syntax highlighting for cmake and cmake.in files) -- [coffee-script](https://github.com/kchmck/vim-coffee-script) (CoffeeScript and Literate CoffeeScript syntax highlighting for coffee, cake, cjsx, iced, coffeekup, litcoffee and coffee.md files) +- [coffee-script](https://github.com/kchmck/vim-coffee-script) (CoffeeScript and Literate CoffeeScript syntax highlighting for coffee, cake, cjsx, iced, coffeekup, cson, litcoffee and coffee.md files) - [cpp-modern](https://github.com/bfrg/vim-cpp-modern) - [cql](https://github.com/elubow/cql-vim) (Syntax highlighting for cql files) - [cryptol](https://github.com/victoredwardocallaghan/cryptol.vim) (Syntax highlighting for cry, cyl, lcry and lcyl files) diff --git a/autoload/polyglot/sleuth.vim b/autoload/polyglot/sleuth.vim index a269fa82..8a5f57ba 100644 --- a/autoload/polyglot/sleuth.vim +++ b/autoload/polyglot/sleuth.vim @@ -81,7 +81,7 @@ let s:globs = { \ 'cmusrc': '', \ 'cobol': '*.cbl,*.cob,*.lib', \ 'coco': '*.atg', - \ 'coffee': '*.coffee,*._coffee,*.cake,*.cjsx,*.iced,*.coffeekup,Cakefile', + \ 'coffee': '*.coffee,*._coffee,*.cake,*.cjsx,*.iced,*.coffeekup,*.cson,Cakefile', \ 'conaryrecipe': '*.recipe', \ 'conf': '*.conf,auto.master,config', \ 'config': 'configure.in,configure.ac,Pipfile', diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 94e9b28b..9e4edbed 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -2441,7 +2441,7 @@ if !has_key(g:polyglot_is_disabled, 'cryptol') endif if !has_key(g:polyglot_is_disabled, 'coffee-script') - au BufNewFile,BufRead *._coffee,*.cake,*.cjsx,*.coffee,*.coffeekup,*.iced,Cakefile setf coffee + au BufNewFile,BufRead *._coffee,*.cake,*.cjsx,*.coffee,*.coffeekup,*.cson,*.iced,Cakefile setf coffee au BufNewFile,BufRead *.coffee.md,*.litcoffee setf litcoffee endif diff --git a/packages.yaml b/packages.yaml index 9f307446..682fdf3b 100644 --- a/packages.yaml +++ b/packages.yaml @@ -403,6 +403,7 @@ filetypes: extra_extensions: # 17 results: https://github.com/search?q=extension%3Acoffeekup+html&type=Code - coffeekup + - cson ignored_warnings: # Probably mistake - '*Cakefile' |