File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,14 @@ bsl_fold~
2525 let bsl_fold = 1
2626<
2727
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+
2834==============================================================================
29- COMMANDS *bsls -commands*
35+ COMMANDS *bsl -commands*
3036
3137==============================================================================
3238 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
3333unlet b: current_syntax
3434
3535syn 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+
3844syn match bslConstantNumeric display " -\=\<\d\+\> "
3945syn match bslConstantFloat display " -\=\<\d\+\.\d\+\> "
4046syn 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