diff --git a/eeschema/sim/spice_grammar.h b/eeschema/sim/spice_grammar.h index 7e5628dfd4..48b936ae79 100644 --- a/eeschema/sim/spice_grammar.h +++ b/eeschema/sim/spice_grammar.h @@ -264,29 +264,31 @@ namespace SPICE_GRAMMAR template inline constexpr const char* errorMessage = nullptr; template <> inline constexpr auto errorMessage = - "expected newline not followed by a line continuation"; + "expected newline"; template <> inline constexpr auto errorMessage = - "expected token separator (one or more whitespace, parenthesis, '=', ',', line continuation)"; - template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage = "expected model name"; - template <> inline constexpr auto errorMessage = "expected model type"; - template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage> = ""; - template <> inline constexpr auto errorMessage> = - "expected (possibly empty) sequence of Spice lines followed by an .ends line"; + "expected token separator (one or more whitespace, parenthesis, '=', ',', or line continuation)"; + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage = + "expected model name"; + template <> inline constexpr auto errorMessage = + "expected model type"; + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage> = + ""; + template <> inline constexpr auto errorMessage> = + "expected (possibly empty) sequence of Spice lines followed by an .ends line"; template <> inline constexpr auto errorMessage = - "expected Spice directive, item, subcircuit definitions, or empty or commented out line"; + "expected Spice directive, item, subcircuit definitions, or empty or commented-out line"; template <> inline constexpr auto errorMessage = - "expected zero or more Spice directives, items, subcircuit definitions, or empty or commented out lines"; + "expected zero or more Spice directives, items, subcircuit definitions, or empty or commented-out lines"; template <> inline constexpr auto errorMessage = - "expected zero or more Spice directives, items, subcircuit definitions, or empty or commented out lines"; + "expected zero or more Spice directives, items, subcircuit definitions, or empty or commented-out lines"; // We create a custom PEGTL control to modify the parser error messages. struct error