File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed
Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 11" Vim filetype detect
22" Language: 1C (BSL)
33" Maintainer: Andreev Alexander <andreevlex.as@gmail.com>
4- " Last Change: 15/10/2016
5- au BufNewFile ,BufRead *.bsl,*.os setf bsl
6-
7- if getline (1 ) = ~ ' \c\(Выбрать\|Select\(\s\+Разрешенные\|Allowed\)\?\(\s\+Различные\|Distinct\)\?\(\s\+Первые\|Top\)\)\?.*'
8- set ft = sdbl
9- endif
4+ " Last Change: 30/10/2016
105
6+ au BufNewFile ,BufRead *.bsl,*.os setf bsl
Original file line number Diff line number Diff line change 1+ " Vim filetype detect
2+ " Language: 1C (SDBL)
3+ " Maintainer: Andreev Alexander <andreevlex.as@gmail.com>
4+ " Last Change: 30/10/2016
5+
6+ " Only do the rest when the FileType autocommand has not been triggered yet.
7+ if did_filetype ()
8+ finish
9+ endif
10+
11+ " filetype detect 1C(SDBL)
12+ au BufNewFile ,BufRead *.sdbl set ft = sdbl
13+ au BufNewFile ,BufRead *.* call s: FTsdblsyntax ()
14+
15+ func ! s: FTsdblsyntax ()
16+ if exists (" g:filetype_sdbl_anyfile" )
17+ if getline (1 ) = ~ ' ^\v\cВыбрать|Select(\s+Разрешенные|\s+Allowed)?(\s+Различные|\s+Distinct)?(\s+Первые|\s+Top)?'
18+ set ft = sdbl
19+ endif
20+ endif
21+ endfunc
22+
23+
You can’t perform that action at this time.
0 commit comments