From 2ab0b0a56a7bd1d39060f3def3c0843bb4d3a095 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 1 Jan 2021 17:18:25 +0100 Subject: Add cson extension to coffeescript, closes #639 Co-authored-by: Collin Styles --- README.md | 2 +- autoload/polyglot/sleuth.vim | 2 +- ftdetect/polyglot.vim | 2 +- packages.yaml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 872c2225..fd9bf7d9 100644 --- a/README.md +++ b/README.md @@ -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' -- cgit v1.2.3