diff --git a/YesNt.Interpreter/Attributes/StatementAttribute.cs b/YesNt.Interpreter/Attributes/StatementAttribute.cs index 6f8f543..9aded1f 100644 --- a/YesNt.Interpreter/Attributes/StatementAttribute.cs +++ b/YesNt.Interpreter/Attributes/StatementAttribute.cs @@ -26,7 +26,7 @@ public class StatementAttribute : Attribute /// Gets which sides of the keyword must be padded with a space. public SpaceAround SpaceAround { get; } - /// Gets or sets the syntax-highlight colour used by the code editor. + /// Gets or sets the syntax-highlight color used by the code editor. public ConsoleColor Color { get; set; } /// @@ -61,12 +61,12 @@ public class StatementAttribute : Attribute public string Separator { get; set; } /// - /// Initialises a new with a syntax-highlight colour. + /// Initializes a new with a syntax-highlight color. /// /// The keyword that identifies this statement. /// Where in the line the keyword is matched. /// Which sides of the keyword require a surrounding space. - /// The colour used for syntax highlighting in the code editor. + /// The color used for syntax highlighting in the code editor. public StatementAttribute(string name, SearchMode searchMode, SpaceAround spaceAround, ConsoleColor color) { Name = name; @@ -76,7 +76,7 @@ public class StatementAttribute : Attribute } /// - /// Initialises a new without a syntax-highlight colour. + /// Initializes a new without a syntax-highlight color. /// The statement will be excluded from syntax highlighting. /// /// The keyword that identifies this statement. diff --git a/YesNt.Interpreter/Runtime/StatementInformation.cs b/YesNt.Interpreter/Runtime/StatementInformation.cs index e08f4a6..5e522b1 100644 --- a/YesNt.Interpreter/Runtime/StatementInformation.cs +++ b/YesNt.Interpreter/Runtime/StatementInformation.cs @@ -19,7 +19,7 @@ public class StatementInformation /// Gets which sides of the keyword must be padded with a space. public SpaceAround SpaceAround { get; internal set; } - /// Gets the syntax-highlight colour for this statement. + /// Gets the syntax-highlight color for this statement. public ConsoleColor Color { get; internal set; } /// diff --git a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs index f9d719d..6f06dac 100644 --- a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs +++ b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs @@ -105,7 +105,7 @@ public class YesNtInterpreter } /// - /// Registers a custom statement without a syntax-highlight colour. + /// Registers a custom statement without a syntax-highlight color. /// /// The keyword that identifies this statement in source code. /// Where in the line the keyword is matched. @@ -117,12 +117,12 @@ public class YesNtInterpreter } /// - /// Registers a custom statement with a syntax-highlight colour. + /// Registers a custom statement with a syntax-highlight color. /// /// The keyword that identifies this statement in source code. /// Where in the line the keyword is matched. /// Which sides of the keyword require a surrounding space. - /// The colour used for syntax highlighting in the code editor. + /// The color used for syntax highlighting in the code editor. /// The delegate invoked when the statement matches. public void AddStatement(string name, SearchMode searchMode, SpaceAround spaceAround, ConsoleColor consoleColor, Action handler) { @@ -147,7 +147,7 @@ public class YesNtInterpreter /// /// Disables all statements matching by replacing their handlers with /// a no-op. The keyword still matches (so no "Invalid statement" error is raised), but the - /// statement has no effect. Use to restore original behaviour. + /// statement has no effect. Use to restore original behavior. /// /// The keyword of the statement(s) to disable. public void DisableStatement(string name) diff --git a/YesNt.Interpreter/Utilities/Evaluator.cs b/YesNt.Interpreter/Utilities/Evaluator.cs index 339e1b5..2aad718 100644 --- a/YesNt.Interpreter/Utilities/Evaluator.cs +++ b/YesNt.Interpreter/Utilities/Evaluator.cs @@ -15,7 +15,7 @@ internal static partial class Evaluator /// The condition expression, which may contain safe-string encoded values. /// /// or if the condition could be evaluated; - /// if the expression is not a recognised condition form (treated as an error by callers). + /// if the expression is not a recognized condition form (treated as an error by callers). /// public static bool? EvaluateCondition(string input) { @@ -83,7 +83,7 @@ internal static partial class Evaluator /// Evaluates a numeric arithmetic expression string and returns the result as a string. /// Supports +, -, *, /, % (modulo), and ^ (power) operators /// with standard precedence (^ highest, +/- lowest) and parentheses. - /// Adjacent sign characters (++, --, -+, +-) are normalised before evaluation. + /// Adjacent sign characters (++, --, -+, +-) are normalized before evaluation. /// /// The arithmetic expression to evaluate. /// The result as a culture-invariant numeric string, or "NaN" if evaluation failed.