annotate runtime/syntax/help_ru.vim @ 30489:1e4d93103d01 v9.0.0580

patch 9.0.0580: no CI running for MacOS on M1 Commit: https://github.com/vim/vim/commit/1d61408af31667669edcbffc876e4eafdcacca96 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat Sep 24 19:32:11 2022 +0100 patch 9.0.0580: no CI running for MacOS on M1 Problem: No CI running for MacOS on M1. Solution: Add a cirrus CI task. (closes https://github.com/vim/vim/issues/11203)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Sep 2022 20:45:03 +0200
parents babd9f1dbe12
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21991
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: Russian Vim program help files *.rux
26100
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21991
diff changeset
3 " Maintainer: Restorer (restorers@users.sourceforge.net DEFUNCT)
21991
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 04 Aprl 2017
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
5 "
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 " Проверяем язык локали и установки опции 'helplang'
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 " Если не русский, то выходим из скрипта.
26100
babd9f1dbe12 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 21991
diff changeset
9 if (v:lang !~? 'ru' || v:lang !~? 'russian') && &helplang !~? 'ru'
21991
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 finish
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11 endif
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 " Подсветка русских гиперссылок
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14 syntax match helpHyperTextJump "\\\@<!|[^"*~# |]\+|" contains=helpBar
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 syntax match helpHyperTextEntry "\*[^"*|]\+\*\s"he=e-1 contains=helpStar
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 syntax match helpHyperTextEntry "\*[^"*|]\+\*$" contains=helpStar
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18 " Заголовок статьи, раздела и т. п.
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 syntax match helpHeadline "^[А-ЯЁ]\{2}[ .]\=[-,А-ЯЁA-Z0-9 .()]*"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 " Наименование справочника
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
22 " новый заголовок
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
23 " syntax match helpVim "\<СПРАВОЧНИК ПО РЕДАКТОРУ VIM\>"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
24 "старый заголовок
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
25 syntax match helpVim "\<СПРАВОЧНИК ПО .*"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
26 " новый заголовок
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
27 "syntax match helpVim "\<РУКОВОДСТВО ПОЛЬЗОВАТЕЛЯ РЕДАКТОРОМ VIM\>"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 "syntax match helpVim "\<автор\%[ы:] .*$"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 "старый заголовок
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30 syntax match helpVim "\<РУКОВОДСТВО ПОЛЬЗОВАТЕЛЯ .*"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 " Подсветка примечаний в тексте, начала примеров и т.п.
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 syntax keyword helpNote Примечание. Совет. Пример. Примеры:
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33 syntax keyword helpWarning Внимание!
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 " в старой версии документации
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
35 syntax keyword helpNote Замечание:
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
36 " в старой версии документации
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
37 syntax keyword helpWarning ВНИМАНИЕ! Предупреждение:
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
38 " Подсветка Ex-команд в документации Vim
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
39 syntax match helpCommand "\":[A-Za-z!]\+\""hs=s+1,he=e-1
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
40 " Подсветка специальных обозначений
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
41 syntax match helpSpecial "{[-а-яёА-ЯЁ0-9'":%#=[\]<>.,]\+}"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
42 syntax match helpSpecial "{[-а-яёА-ЯЁ0-9'"*+/:%#=[\]<>.,]\+}"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
43 syntax match helpSpecial "\s\[[-а-яё^А-ЯЁ0-9_]\{2,}]"ms=s+1
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
44 syntax match helpSpecial "<[-а-яёА-ЯЁ0-9_]\+>"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
45 syntax match helpSpecial "\[диапазон]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
46 syntax match helpSpecial "\[счётчик]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
47 syntax match helpSpecial "\[число]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
48 syntax match helpSpecial "\[+число]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
49 syntax match helpSpecial "\[-число]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
50 syntax match helpSpecial "\[кол-во]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
51 syntax match helpSpecial "\[строка]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
52 syntax match helpSpecial "\[смещение]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
53 syntax match helpSpecial "\[параметр]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
54 syntax match helpSpecial "\[параметры]"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
55 syntax match helpSpecial "CTRL-{символ}"
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
56 syntax region helpNotVi start="{Доступно только" start="{В редкторе Vim" start="{В редакторе Vi" end="}" contains=helpLeadBlank,helpHyperTextJump
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
57 " Подсветка примечаний переводчика
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
58 syntax region helpTrnsNote start="\[Прим. перевод." end="]" contains=helpComment
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
59 " Определение группы подсветки Ex-команд в документации Vim
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
60 "hi def link helpCommand vimCommand
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
61 " Определение группы подсветки примечаний переводчика
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
62 hi def link helpTrnsNote Comment
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
63 " hi def link helpTrnsNote Comment
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
64 "
bbca88cd13d5 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
65 " vim: ts=8 sw=2