plugins/efmls-configs: Avoid spaces in language names (#563)

This commit is contained in:
traxys 2023-08-28 18:27:03 +02:00 committed by GitHub
parent 33cffcb0fd
commit e704db3064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -18,7 +18,9 @@ for kind in ["linters", "formatters"]:
with open(tool_path + "/" + kind + "/" + file) as f: with open(tool_path + "/" + kind + "/" + file) as f:
for line in f.readlines(): for line in f.readlines():
if line.startswith("-- languages:"): if line.startswith("-- languages:"):
languages = line.split(":")[1].strip().split(",") languages = [
l.strip() for l in line.split(":")[1].strip().split(",")
]
break break
tools[kind][tool_name] = languages tools[kind][tool_name] = languages

View file

@ -12,10 +12,10 @@
], ],
"beautysh": [ "beautysh": [
"sh", "sh",
" bash", "bash",
" zsh", "zsh",
" csh", "csh",
" ksh" "ksh"
], ],
"black": [ "black": [
"python" "python"