File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,14 @@ bsl_fold~
25
25
let bsl_fold = 1
26
26
<
27
27
28
+ *sdbl_syntax_disable*
29
+ sdbl_syntax_disable~
30
+ Set this option to disable the syntax highlighting Query text: >
31
+ let g:sdbl_syntax_disable = 1
32
+ <
33
+
28
34
==============================================================================
29
- COMMANDS *bsls -commands*
35
+ COMMANDS *bsl -commands*
30
36
31
37
==============================================================================
32
38
vim:tw=78:sw=4:noet:ts=8:ft=help:norl:
Original file line number Diff line number Diff line change @@ -33,8 +33,14 @@ syntax include @bslSDBL <sfile>:p:h/sdbl.vim
33
33
unlet b: current_syntax
34
34
35
35
syn region bslCommentLineDoubleSlash start =" //" end =" $" contains =bslTODO
36
- syn region bslStringQuotedDouble matchgroup =bslStrings start =+ "+ end =+ "+ contains =sdblSource
37
- syn region sdblSource contained start =" \% (Выбрать\| Select\(\s\+ Разрешенные\|\s\+ Allowed\)\?\(\s\+ Различные\|\s\+ Distinct\)\?\(\s\+ Первые\|\s\+ Top\)\?\) " end =" \(\(\" [^\" ]\)\@ =\) " contains =@bslSDBL transparent
36
+
37
+ if exists (" g:sdbl_syntax_disable" )
38
+ syn region bslStringQuotedDouble matchgroup =bslStrings start =+ "+ end =+ "+
39
+ else
40
+ syn region bslStringQuotedDouble matchgroup =bslStrings start =+ "+ end =+ "+ contains =sdblSource
41
+ syn region sdblSource contained start =" \% (Выбрать\| Select\(\s\+ Разрешенные\|\s\+ Allowed\)\?\(\s\+ Различные\|\s\+ Distinct\)\?\(\s\+ Первые\|\s\+ Top\)\?\) " end =" \(\(\" [^\" ]\)\@ =\) " contains =@bslSDBL transparent
42
+ endif
43
+
38
44
syn match bslConstantNumeric display " -\=\<\d\+\> "
39
45
syn match bslConstantFloat display " -\=\<\d\+\.\d\+\> "
40
46
syn match bslConstantOtherDate " \'\% (\(\d {4}[^\d\' ]*\d {2}[^\d\' ]*\d {2}\)\( [^\d\' ]*\d {2}[^\d\' ]*\d {2}\( [^\d\' ]*\d {2}\)\?\)\?\)\' "
You can’t perform that action at this time.
0 commit comments