mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
Reformat all files
This runs build_tools/style.fish, which runs clang-format on C++, fish_indent on fish and (new) black on python. If anything is wrong with the formatting, we should fix the tools, but automated formatting is worth it.
This commit is contained in:
@@ -91,9 +91,9 @@ def tokenize_fish_command(code, offset):
|
||||
stdout=subprocess.PIPE,
|
||||
universal_newlines=False,
|
||||
)
|
||||
stdout, _ = proc.communicate(code.encode('utf-8'))
|
||||
stdout, _ = proc.communicate(code.encode("utf-8"))
|
||||
result = []
|
||||
for line in stdout.decode('utf-8').splitlines():
|
||||
for line in stdout.decode("utf-8").splitlines():
|
||||
start, end, role = line.split(",")
|
||||
start, end = int(start), int(end)
|
||||
value = code[start:end]
|
||||
|
||||
Reference in New Issue
Block a user