diff --git a/less_completions.py b/less_completions.py index 9c9ab6b..b788f77 100755 --- a/less_completions.py +++ b/less_completions.py @@ -268,7 +268,7 @@ 'grid': [], 'grid-area': [], 'grid-auto-columns': ['auto', '', ''], - 'grid-auto-flow': ['row', 'column' 'dense'], + 'grid-auto-flow': ['row', 'column', 'dense'], 'grid-auto-rows': ['auto', '', ''], 'grid-column-gap': ['', ''], 'grid-gap': ['', ''], @@ -487,13 +487,13 @@ def on_query_completions(self, view, prefix, locations): add_semi_colon = view.substr(sublime.Region(loc, loc + 1)) != ';' for value in values: - desc = value + desc = value + "\t" + prop_name snippet = value if add_semi_colon: snippet += ";" - if snippet.find("$1") != -1: + if "$1" in snippet: desc = desc.replace("$1", "") l.append((desc, snippet)) @@ -506,8 +506,8 @@ def on_query_completions(self, view, prefix, locations): for prop in self.props: if add_colon: - l.append((prop, prop + ": ")) + l.append((prop + "\tproperty", prop + ": ")) else: - l.append((prop, prop)) + l.append((prop + "\tproperty", prop)) return (l, sublime.INHIBIT_WORD_COMPLETIONS)