Mercurial > vim
annotate runtime/spell/check_locales.vim @ 29064:3fbc7462de59 v8.2.5054
patch 8.2.5054: no good filetype for conf files similar to dosini
Commit: https://github.com/vim/vim/commit/635f48010dcf6d97f3a65b4785e1726ad386d3eb
Author: Mudskipper875 <89634034+Mudskipper875@users.noreply.github.com>
Date: Fri Jun 3 18:40:53 2022 +0100
patch 8.2.5054: no good filetype for conf files similar to dosini
Problem: No good filetype for conf files similar to dosini.
Solution: Add the confini filetype. (closes https://github.com/vim/vim/issues/10510)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Jun 2022 19:45:02 +0200 |
parents | ea3c3f13385c |
children |
rev | line source |
---|---|
2292
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 " Script to check if all the locales used in spell files are available. |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
3 grep /sys env LANG/ */main.aap |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
4 let not_supported = [] |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 for item in getqflist() |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
6 let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '') |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
7 try |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 exe 'lang ' . lang |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
9 catch /E197/ |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
10 call add(not_supported, lang) |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
11 endtry |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 endfor |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 if len(not_supported) > 0 |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 echo "Unsupported languages:" |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 for l in not_supported |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 echo l |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
18 endfor |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
19 else |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
20 echo "Everything appears to be OK" |
ea3c3f13385c
Update spell files for Ubuntu locale names.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
21 endif |