File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 3030 "end" : " ^\\ s*//\\ s*#?endregion\\ b"
3131 }
3232 },
33- "wordPattern" : " (-?\\ d*\\ .\\ d\\ w*)|([^\\ ~\\ !\\ @\\ #\\ %\\ ^\\ &\\ *\\ (\\ )\\ -\\ =\\ +\\ [\\ {\\ ]\\ }\\\\\\ |\\ ;\\ :\\ '\\\"\\ .\\ <\\ >\\ /\\ ?\\ s]+)" ,
34- "indentationRules" : {
35- "increaseIndentPattern" : " ^((?!.*?\\ /\\ *).*\\ */)?\\ s*[\\ }\\ ]].*$" ,
36- "decreaseIndentPattern" : " ^((?!\\ /\\ /).)*(\\ {[^}\" ']*|\\ ([^)\" ']*|\\ [[^\\ ]\" ']*)$"
37- }
33+ "wordPattern" : " (-?\\ d*\\ .\\ d\\ w*)|([^\\ ~\\ !\\ @\\ #\\ %\\ ^\\ &\\ *\\ (\\ )\\ -\\ =\\ +\\ [\\ {\\ ]\\ }\\\\\\ |\\ ;\\ :\\ '\\\"\\ .\\ <\\ >\\ /\\ ?\\ s]+)"
3834}
Original file line number Diff line number Diff line change @@ -17,11 +17,14 @@ export function install() {
1717 // setLanguageConfiguration requires a regexp for the wordpattern, not a string
1818 langConfig . wordPattern = new RegExp ( langConfig . wordPattern ) ;
1919 langConfig . onEnterRules = onEnterRules ;
20+ langConfig . indentationRules = {
21+ decreaseIndentPattern : / ^ ( (? ! .* ?\/ \* ) .* \* \/ ) ? \s * [ \} \] ] .* $ / ,
22+ increaseIndentPattern : / ^ ( (? ! \/ \/ ) .) * ( \{ [ ^ } " ' ` ] * | \( [ ^ ) " ' ` ] * | \[ [ ^ \] " ' ` ] * ) $ /
23+ } ;
2024
2125 languages . setLanguageConfiguration ( 'ql' , langConfig ) ;
2226 languages . setLanguageConfiguration ( 'qll' , langConfig ) ;
2327 languages . setLanguageConfiguration ( 'dbscheme' , langConfig ) ;
24-
2528}
2629
2730const onEnterRules = [
You can’t perform that action at this time.
0 commit comments