11" Vim syntax file
22" Language: 1C (SDBL)
3- " Maintainer: Andreev Alexander <andreevlex.as@gmail.com>
4- " Last Change: 17 /10/2016
3+ " Maintainer: Alexander Andreev <andreevlex.as@gmail.com>
4+ " Last Change: 19 /10/2016
55"
66" For version 5.x: Clear all syntax items
77" For version 6.x: Quit when a syntax file was already loaded
@@ -19,59 +19,59 @@ syn match keyword_operator_sdbl "[-+/*%=<>]"
1919syn region comment_line_double_slash_sdbl start =" //" end =" $"
2020syn region string_quoted_double_sdbl start =+ \" + end =+ \"\( ["]\)\@ !+ contains =constant_character_escape_sdbl,comment_line_double_slash_sdbl
2121syn match constant_character_escape_sdbl + \"\" +
22- syn match constant_language_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Неопределено\| Undefined\| Истина\| True\| Ложь\| False\| NULL\)\> "
22+ syn match constant_language_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Неопределено\| Undefined\| Истина\| True\| Ложь\| False\| NULL\)\>\( [^.] \@ = \| $ \) "
2323syn match constant_numeric_bsl " -\=\<\d\+\> "
2424syn match constant_float_bsl " -\=\<\d\+\.\d\+\> "
2525syn match variable_parameter_sdbl " \( &[a-z0-9_а-яё]\+\) "
26- syn match keyword_control_conditional_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Выбор\| Case\| Когда\| When\| Тогда\| Then\| Иначе\| Else\| Конец\| End\)\> "
27- syn match keyword_operator_logical_sdbl " \(\( КАК\s\| AS\s\)\@ <!\)\(\( [^.]\| ^ \)\ @ <=\)\<\( НЕ\| NOT\| И\| AND\| ИЛИ\| OR\| В\s\+ ИЕРАРХИИ\| IN\s\+ HIERARCHY\| В\| In\| Между\| Between\| Есть\s NULL\| Is\s\+ NULL\| Ссылка\| Refs\| Подобно\| Like\)\> "
28- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Выбрать\| Select\| Разрешенные\| Allowed\| Различные\| Distinct\| Первые\| Top\| Как\| As\| ПустаяТаблица\| EpmtyTable\| Поместить\| Into\| Уничтожить\| Drop\| Из\| From\)\> "
29- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Левое\| Left\| Правое\| Right\| Полное\| Full\)\s\+\( Внешнее\s\+\| Outer\s\+\)\? Соединение\| Join\> "
30- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\(\( Внутреннее\s\+\| Inner\s\+\)\? Соединение\| Join\)\> "
31- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Где\| Where\| Сгруппировать\s\+ По\| Group\s\+ By\| Имеющие\| Having\)\> "
32- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Объединить\(\s\+ Все\)\?\| Union\(\s\+ All\)\?\)\> "
33- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Упорядочить\s\+ По\| Order\s\+ By\| Автоупорядочивание\| Autoorder\| Итоги\| Totals\)\> "
34- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( По\(\s\+ Общие\)\?\| By\(\s\+ Overall\)\?\|\( Только\s\+\)\? Иерархия\|\( Only\s\+\)\? Hierarchy\)\> "
35- syn match keyword_control_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Периодами\| Periods\| Индексировать\| Index\| Выразить\| Cast\| Возр\| Asc\| Убыв\| Desc\| Для\s\+ Изменения\| For\s\+ Update\(\s\+ Of\)\?\| Спецсимвол\| Escape\)\> "
26+ syn match keyword_control_conditional_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Выбор\| Case\| Когда\| When\| Тогда\| Then\| Иначе\| Else\| Конец\| End\)\>\( [^.] \@ = \| $ \) "
27+ syn match keyword_operator_logical_sdbl " \(\( КАК\s\| AS\s\)\@ <!\)\( [^.]\@ <=\| ^ \ )\<\( НЕ\| NOT\| И\| AND\| ИЛИ\| OR\| В\s\+ ИЕРАРХИИ\| IN\s\+ HIERARCHY\| В\| In\| Между\| Between\| Есть\s NULL\| Is\s\+ NULL\| Ссылка\| Refs\| Подобно\| Like\)\>\( [^.] \@ = \| $ \) "
28+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Выбрать\| Select\| Разрешенные\| Allowed\| Различные\| Distinct\| Первые\| Top\| Как\| As\| ПустаяТаблица\| EpmtyTable\| Поместить\| Into\| Уничтожить\| Drop\| Из\| From\)\>\( [^.] \@ = \| $ \) "
29+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\(\( Левое\| Left\| Правое\| Right\| Полное\| Full\)\s\+\( Внешнее\s\+\| Outer\s\+\)\? Соединение\| Join\)\>\( [^.] \@ = \| $ \) "
30+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\(\( Внутреннее\s\+\| Inner\s\+\)\? Соединение\| Join\)\>\( [^.] \@ = \| $ \) "
31+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Где\| Where\| Сгруппировать\s\+ По\| Group\s\+ By\| Имеющие\| Having\)\>\( [^.] \@ = \| $ \) "
32+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Объединить\(\s\+ Все\)\?\| Union\(\s\+ All\)\?\)\>\( [^.] \@ = \| $ \) "
33+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Упорядочить\s\+ По\| Order\s\+ By\| Автоупорядочивание\| Autoorder\| Итоги\| Totals\)\>\( [^.] \@ = \| $ \) "
34+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( По\(\s\+ Общие\)\?\| By\(\s\+ Overall\)\?\|\( Только\s\+\)\? Иерархия\|\( Only\s\+\)\? Hierarchy\)\>\( [^.] \@ = \| $ \) "
35+ syn match keyword_control_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Периодами\| Periods\| Индексировать\| Index\| Выразить\| Cast\| Возр\| Asc\| Убыв\| Desc\| Для\s\+ Изменения\| For\s\+ Update\(\s\+ Of\)\?\| Спецсимвол\| Escape\)\>\( [^.] \@ = \| $ \) "
3636
3737" Функции языка запросов
38- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Значение\| Value\)\>\s *\( (\@ =\) "
39- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ДатаВремя\| DateTime\)\>\s *\( (\@ =\) "
40- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Тип\| Type\)\>\s *\( (\@ =\) "
38+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Значение\| Value\)\>\s *\( (\@ =\) "
39+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ДатаВремя\| DateTime\)\>\s *\( (\@ =\) "
40+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Тип\| Type\)\>\s *\( (\@ =\) "
4141
4242" Функции работы со строками
43- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Подстрока\| Substring\)\>\s *\( (\@ =\) "
43+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Подстрока\| Substring\)\>\s *\( (\@ =\) "
4444
4545" Функции работы с датами
46- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Год\| Year\)\>\s *\( (\@ =\) "
47- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Квартал\| Quarter\)\>\s *\( (\@ =\) "
48- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Месяц\| Month\)\>\s *\( (\@ =\) "
49- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ДеньГода\| DayOfYear\)\>\s *\( (\@ =\) "
50- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( День\| Day\)\>\s *\( (\@ =\) "
51- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Неделя\| Week\)\>\s *\( (\@ =\) "
52- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ДеньНедели\| Weekday\)\>\s *\( (\@ =\) "
53- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Час\| Hour\)\>\s *\( (\@ =\) "
54- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Минута\| Minute\)\>\s *\( (\@ =\) "
55- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Секунда\| Second\)\>\s *\( (\@ =\) "
56- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( НачалоПериода\| BeginOfPeriod\)\>\s *\( (\@ =\) "
57- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( КонецПериода\| EndOfPeriod\)\>\s *\( (\@ =\) "
58- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ДобавитьКДате\| DateAdd\)\>\s *\( (\@ =\) "
59- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( РазностьДат\| DateDiff\)\>\s *\( (\@ =\) "
46+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Год\| Year\)\>\s *\( (\@ =\) "
47+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Квартал\| Quarter\)\>\s *\( (\@ =\) "
48+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Месяц\| Month\)\>\s *\( (\@ =\) "
49+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ДеньГода\| DayOfYear\)\>\s *\( (\@ =\) "
50+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( День\| Day\)\>\s *\( (\@ =\) "
51+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Неделя\| Week\)\>\s *\( (\@ =\) "
52+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ДеньНедели\| Weekday\)\>\s *\( (\@ =\) "
53+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Час\| Hour\)\>\s *\( (\@ =\) "
54+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Минута\| Minute\)\>\s *\( (\@ =\) "
55+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Секунда\| Second\)\>\s *\( (\@ =\) "
56+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( НачалоПериода\| BeginOfPeriod\)\>\s *\( (\@ =\) "
57+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( КонецПериода\| EndOfPeriod\)\>\s *\( (\@ =\) "
58+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ДобавитьКДате\| DateAdd\)\>\s *\( (\@ =\) "
59+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( РазностьДат\| DateDiff\)\>\s *\( (\@ =\) "
6060
6161" Агрегатные функции
62- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Сумма\| Sum\)\>\s *\( (\@ =\) "
63- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Среднее\| Avg\)\>\s *\( (\@ =\) "
64- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Минимум\| Min\)\>\s *\( (\@ =\) "
65- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Максимум\| Max\)\>\s *\( (\@ =\) "
66- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Количество\| Count\)\>\s *\( (\@ =\) "
62+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Сумма\| Sum\)\>\s *\( (\@ =\) "
63+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Среднее\| Avg\)\>\s *\( (\@ =\) "
64+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Минимум\| Min\)\>\s *\( (\@ =\) "
65+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Максимум\| Max\)\>\s *\( (\@ =\) "
66+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Количество\| Count\)\>\s *\( (\@ =\) "
6767
6868" Прочие функции
69- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ЕстьNULL\| IsNULL\)\>\s *\( (\@ =\) "
70- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Представление\| Presentation\)\>\s *\( (\@ =\) "
71- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ПредставлениеСсылки\| RefPresentation\)\>\s *\( (\@ =\) "
72- syn match support_function_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( ТипЗначения\| ValueType\)\>\s *\( (\@ =\) "
69+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ЕстьNULL\| IsNULL\)\>\s *\( (\@ =\) "
70+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( Представление\| Presentation\)\>\s *\( (\@ =\) "
71+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ПредставлениеСсылки\| RefPresentation\)\>\s *\( (\@ =\) "
72+ syn match support_function_sdbl " \( [^.]\@ <=\| ^ \)\<\( ТипЗначения\| ValueType\)\>\s *\( (\@ =\) "
7373
74- syn match support_type_sdbl " \(\( [^.]\| ^ \)\ @ <=\)\<\( Число\| Number\| Строка\| String\| Дата\| Date\)\> "
74+ syn match support_type_sdbl " \( [^.]\@ <=\| ^ \ )\<\( Число\| Number\| Строка\| String\| Дата\| Date\)\>\( [^.] \@ = \| $ \) "
7575
7676
7777" Define the default highlighting.
0 commit comments