fix the formatter #12

Merged
Christoph merged 1 commits from tcl_language_support into main 2025-07-21 04:52:41 +00:00
Showing only changes of commit b17a4f8ba0 - Show all commits
+1 -1
View File
@@ -28,7 +28,7 @@ def format_tcl(src: str, indent_str=" ") -> str:
continue
# 3) SPECIAL: closing brace plus tag on same line: '} Tag'
m = re.match(r"^\}\s+(\w+)", stripped)
m = re.match(r"^\}\s+\w+.*", stripped)
if m:
# close one block
level = max(level - 1, 0)