GDQuest / GDQuest/GDScript-formatter

Complete the specification for formatting

Offen
#302 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @NathanLovato Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
455
Forks
39
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
4

Beschreibung

I started writing a doc there: https://github.com/GDQuest/GDScript-formatter/blob/main/docs/specification_formatter.md

Things left to cover:

- Nested constructs (like nested function calls)
- Comments in constructs (like comments in the middle of function calls, inline after commas, above arguments, after last argument without trailing comma...)
- Expressions:
- ternaries, whether to keep an entire per line, where to wrap (after if, before else, etc.)
- Boolean expressions, mainly replicating the official styleguide + deciding on horizontal packing (one expression segment per line, balanced across the minimal number of lines possible, greedy packed? + continuation layout)
- Chains of function calls
- Additions, multiplications, etc. (binary operators)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.