Merge pull request 'fix formatter for buffers' (#13) from tcl_language_support into main
/ build_and_publish (push) Successful in 27s
/ build_and_publish (push) Successful in 27s
Reviewed-on: #13
This commit was merged in pull request #13.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user