annotate runtime/syntax/help_ru.vim @ 31473:edd37b53405a v9.0.1069

patch 9.0.1069: diff mode highlight fails for special characters Commit: https://github.com/vim/vim/commit/417e88bb75ee8af1bf696760bba9f114a007f733 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 17 15:03:02 2022 +0000 patch 9.0.1069: diff mode highlight fails for special characters Problem: Diff mode highlight fails for special characters. Solution: Adjust condition for setting "diff_hlf".
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Dec 2022 16:15:03 +0100
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