My bad, I might've overcomplicated. Yes, I declared it on purpose to differentiate between writing the inline var in one line vs in two lines. To simplify, the change I'd like is a new option "Do not indent inline var in a new line" that when turned on, instead of getting this: var LExample1: IExample := TExample.Create; we get this: var LExample1: IExample := TExample.Create;
My bad, I might've overcomplicated. Yes, I declared it on purpose to differentiate between writing the inline var in one line vs in two lines. To simplify, the change I'd like is a new option "Do not indent inline var in in a new line" that when turned on, instead of getting this: var LExample1: IExample := TExample.Create; we get this: var LExample1: IExample := TExample.Create;
Add "Do not indent inline var if in a new line"
Formatter adds spurious spaces around generic brackets containing reserved-word type names
Formatter: "Use first occurrence" capitalization lowercases identifiers that share a name with a keyword/directive
Here's a working fix Claude gave me after describing the issue. It also handles other keywords with the same bug. { GX_CodeFormatterFormatter.pas - TCodeFormatterFormatter } { interface section - new function: UsesUsedAsIdentifier } ///<summary> /// @returns True if the current rtUses token ("uses"/"exports"/"requires"/"contains") /// is actually being used as an ordinary identifier rather than a section /// keyword. "contains" and "requires" are context-sensitive directives that /// are only keywords...
Here's a working fix Claude gave me after describing the issue: { GX_CodeFormatterFormatter.pas - TCodeFormatterFormatter } { interface section - new function: UsesUsedAsIdentifier } ///<summary> /// @returns True if the current rtUses token ("uses"/"exports"/"requires"/"contains") /// is actually being used as an ordinary identifier rather than a section /// keyword. "contains" and "requires" are context-sensitive directives that /// are only keywords inside package (.dpk) files, so they are common...
Here's a fix Claude gave me after describing the issue: { GX_CodeFormatterFormatter.pas - TCodeFormatterFormatter } { interface section - new function: UsesUsedAsIdentifier } ///<summary> /// @returns True if the current rtUses token ("uses"/"exports"/"requires"/"contains") /// is actually being used as an ordinary identifier rather than a section /// keyword. "contains" and "requires" are context-sensitive directives that /// are only keywords inside package (.dpk) files, so they are common ///...