Mercurial > vim
view src/po/fixfilenames.vim @ 32188:70d078793ad2 v9.0.1425
patch 9.0.1425: "wat" and "wast" files are one filetype
Commit: https://github.com/vim/vim/commit/3ea62381c527395ae701715335776f427d22eb7b
Author: Amaan Qureshi <amaanq12@gmail.com>
Date: Thu Mar 23 15:45:46 2023 +0000
patch 9.0.1425: "wat" and "wast" files are one filetype
Problem: "wat" and "wast" files are one filetype.
Solution: Add a separate filetype for "wat" files. (Amaan Qureshi,
closes #12165)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Mar 2023 17:00:06 +0100 |
parents | aa91480771fe |
children | 04563887d70e |
line wrap: on
line source
" Invoked with the name "vim.pot" and a list of Vim script names. " Converts them to a .js file, stripping comments, so that xgettext works. set shortmess+=A for name in argv()[1:] let jsname = fnamemodify(name, ":t:r") .. ".js" exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+" endfor write last quit