|
1 | 1 | " Vim syntax file |
2 | 2 | " Language: 1C (BSL) |
3 | 3 | " Maintainer: Alexander Andreev <andreevlex.as@gmail.com> |
4 | | -" Last Change: 01/11/2016 |
| 4 | +" Last Change: 14/11/2016 |
5 | 5 | " |
6 | 6 | " For version 5.x: Clear all syntax items |
7 | 7 | " For version 6.x: Quit when a syntax file was already loaded |
@@ -32,13 +32,15 @@ syn match keyword_operator_bsl display "[-+/*%=<>.?]" |
32 | 32 | syntax include @bslSDBL <sfile>:p:h/sdbl.vim |
33 | 33 | unlet b:current_syntax |
34 | 34 |
|
35 | | -syn region comment_line_double_slash_bsl start="//" end="$" |
| 35 | +syn region comment_line_double_slash_bsl start="//" end="$" contains=bslTODO |
36 | 36 | syn region string_quoted_double_bsl matchgroup=bslStrings start=+"+ end=+"+ contains=source_sdbl |
37 | 37 | syn region source_sdbl start="\(Выбрать\|Select\(\s\+Разрешенные\|\s\+Allowed\)\?\(\s\+Различные\|\s\+Distinct\)\?\(\s\+Первые\|\s\+Top\)\?\)" end="\(\(\"[^\"]\)\@=\)" contains=@bslSDBL transparent |
38 | 38 | syn match constant_numeric_bsl display "-\=\<\d\+\>" |
39 | 39 | syn match constant_float_bsl display "-\=\<\d\+\.\d\+\>" |
40 | 40 | syn match constant_other_date_bsl "\'\(\(\d{4}[^\d\']*\d{2}[^\d\']*\d{2}\)\([^\d\']*\d{2}[^\d\']*\d{2}\([^\d\']*\d{2}\)\?\)\?\)\'" |
41 | 41 |
|
| 42 | +syn keyword bslTODO contained TODO FIXME |
| 43 | + |
42 | 44 | " --- Keywords --- |
43 | 45 | syn keyword constant_language_bsl Неопределено Undefined Истина True Ложь False NULL |
44 | 46 | syn keyword keyword_control_bsl Прервать Break Продолжить Continue Возврат Return |
@@ -195,6 +197,7 @@ HiLink string_quoted_double_bsl String |
195 | 197 | HiLink constant_numeric_bsl Number |
196 | 198 | HiLink constant_float_bsl Float |
197 | 199 | HiLink constant_other_date_bsl Constant |
| 200 | +HiLink bslTODO Todo |
198 | 201 | HiLink constant_language_bsl Constant |
199 | 202 | HiLink keyword_statement_bsl Statement |
200 | 203 | HiLink keyword_control_bsl Keyword |
|
0 commit comments