Skip to content

Commit

Permalink
plugins/efmls-configs: Avoid spaces in language names (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
traxys authored Aug 28, 2023
1 parent 33cffcb commit e704db3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion helpers/efmls-configs/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
with open(tool_path + "/" + kind + "/" + file) as f:
for line in f.readlines():
if line.startswith("-- languages:"):
languages = line.split(":")[1].strip().split(",")
languages = [
l.strip() for l in line.split(":")[1].strip().split(",")
]
break
tools[kind][tool_name] = languages

Expand Down
8 changes: 4 additions & 4 deletions plugins/lsp/language-servers/efmls-configs-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
],
"beautysh": [
"sh",
" bash",
" zsh",
" csh",
" ksh"
"bash",
"zsh",
"csh",
"ksh"
],
"black": [
"python"
Expand Down

0 comments on commit e704db3

Please sign in to comment.