@@ -1523,21 +1523,21 @@ def on_query_completions(self, view, prefix, locations):
15231523 if vid in completions :
15241524
15251525 on_query_info = completions [vid ]
1526- completion_type , add_word_completions , text_in_current_line , lang , trigger , sublime_explicit_completions = on_query_info [" params" ]
1527- cplns = on_query_info [" cplns" ]
1526+ completion_type , add_word_completions , text_in_current_line , lang , trigger , sublime_explicit_completions = on_query_info [' params' ]
1527+ cplns = on_query_info [' cplns' ]
15281528 del completions [vid ]
15291529
15301530 word_completions = 0 if sublime_word_completions and len (prefix ) != 0 else sublime .INHIBIT_WORD_COMPLETIONS
15311531 explicit_completions = 0 if sublime_explicit_completions else sublime .INHIBIT_EXPLICIT_COMPLETIONS
15321532
1533- if completion_type == " tooltips" :
1533+ if completion_type == ' tooltips' :
15341534 return (cplns , sublime .INHIBIT_WORD_COMPLETIONS | sublime .INHIBIT_EXPLICIT_COMPLETIONS )
15351535
1536- if completion_type == " cplns" :
1536+ if completion_type == ' cplns' :
15371537 if cplns is not None :
15381538 _completions = format_completions_by_language (cplns , lang , text_in_current_line , trigger )
15391539
1540- if add_word_completions in [" buffer" , " all" ]:
1540+ if add_word_completions in [' buffer' , ' all' ]:
15411541 wordsFromBufferMgr = WordCompletionsFromBuffer ()
15421542 word_completions_from_buffer = wordsFromBufferMgr .getCompletions (view , prefix , locations , add_word_completions )
15431543 if cplns is not None :
@@ -1546,7 +1546,7 @@ def on_query_completions(self, view, prefix, locations):
15461546 def extendForLanguages (n , lang ):
15471547 for i in n :
15481548 yield i [1 ]
1549- if lang == " PHP" :
1549+ if lang == ' PHP' :
15501550 yield "$" + i [1 ]
15511551 cplns_list = [i for i in extendForLanguages (cplns , lang )]
15521552 word_completions_from_buffer = [x for x in word_completions_from_buffer if x [0 ] not in cplns_list ]
0 commit comments