mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
compiler/parse_inst_mode_defn.m:
Add color to the diagnostics generated by this module.
compiler/parse_sym_name.m:
Add color to the diagnostics generated by this module.
Factor out repeated copies of the code fragments that generate
those diagnostics, and move all such code to the end of the module.
When parsing a sym_name/arity specifier, if *both* halves have errors,
report both sets of errors, not just one.
In a few cases, improve the wording of the diagnostic.
compiler/parse_util.m:
Add color to the diagnostics generated by this module.
Change the meaning of the first arg of parse_list_elements
to omit the initial article, to allow better wording of diagnostics.
Change the representation of the description of conflicts
(such as between features in feature set pragmas) from strings to pieces,
to allow them to include color.
compiler/parse_class.m:
compiler/parse_pragma.m:
compiler/parse_pragma_analysis.m:
compiler/parse_pragma_foreign.m:
compiler/parse_type_defn.m:
Conform to the changes above.
tests/invalid/invalid_int.err_exp2:
tests/invalid_make_int/bad_foreign_type_int.int_err_exp:
tests/invalid_make_int/test_type_spec_int.int_err_exp:
tests/invalid_nodepend/bad_foreign_enum.err_exp:
tests/invalid_nodepend/bad_foreign_export.err_exp:
tests/invalid_nodepend/bad_foreign_export_enum.err_exp:
tests/invalid_nodepend/bad_foreign_proc.err_exp:
tests/invalid_nodepend/bad_include.err_exp:
tests/invalid_nodepend/bad_inst_defn.err_exp:
tests/invalid_nodepend/bad_pragma.err_exp:
tests/invalid_nodepend/conflicting_fs.err_exp:
tests/invalid_nodepend/impl_def_literal_syntax.err_exp:
tests/invalid_nodepend/invalid_float_literal.err_exp:
tests/invalid_nodepend/invalid_typeclass.err_exp:
tests/invalid_nodepend/kind.err_exp:
tests/invalid_nodepend/null_char.err_exp:
tests/invalid_nodepend/reserved.err_exp:
tests/invalid_nodepend/subtype_syntax.err_exp:
tests/invalid_nodepend/vars_in_wrong_places.err_exp:
Expect updated diagnostics.
2.4 KiB
2.4 KiB
invalid_int.m:019: Error: the integer literal
invalid_int.m:019: `0b10000000000000000000000000000000000000000000000000000000000000000'
invalid_int.m:019: is outside the range of that type.
invalid_int.m:024: Error: the integer literal `0o2000000000000000000000' is
invalid_int.m:024: outside the range of that type.
invalid_int.m:030: Error: the integer literal `0x10000000000000000' is outside
invalid_int.m:030: the range of that type.
invalid_int.m:035: Error: the integer literal `9223372036854775808' is outside
invalid_int.m:035: the range of that type.
invalid_int.m:040: Error: the 8-bit integer literal `-129i8' is outside the
invalid_int.m:040: range of that type.
invalid_int.m:043: Error: the 8-bit integer literal `128i8' is outside the
invalid_int.m:043: range of that type.
invalid_int.m:048: Error: the unsigned 8-bit integer literal `256u8' is outside
invalid_int.m:048: the range of that type.
invalid_int.m:049: Error: the unsigned 8-bit integer literal `257u8' is outside
invalid_int.m:049: the range of that type.
invalid_int.m:054: Error: the 16-bit integer literal `-32769i16' is outside the
invalid_int.m:054: range of that type.
invalid_int.m:057: Error: the 16-bit integer literal `32768i16' is outside the
invalid_int.m:057: range of that type.
invalid_int.m:063: Error: the unsigned 16-bit integer literal `65536u16' is
invalid_int.m:063: outside the range of that type.
invalid_int.m:068: Error: the 32-bit integer literal `-2147483649i32' is
invalid_int.m:068: outside the range of that type.
invalid_int.m:071: Error: the 32-bit integer literal `2147483648i32' is outside
invalid_int.m:071: the range of that type.
invalid_int.m:077: Error: the unsigned 32-bit integer literal `4294967296u32'
invalid_int.m:077: is outside the range of that type.
invalid_int.m:019: `0b10000000000000000000000000000000000000000000000000000000000000000'
invalid_int.m:019: is outside the range of that type.
invalid_int.m:024: Error: the integer literal `0o2000000000000000000000' is
invalid_int.m:024: outside the range of that type.
invalid_int.m:030: Error: the integer literal `0x10000000000000000' is outside
invalid_int.m:030: the range of that type.
invalid_int.m:035: Error: the integer literal `9223372036854775808' is outside
invalid_int.m:035: the range of that type.
invalid_int.m:040: Error: the 8-bit integer literal `-129i8' is outside the
invalid_int.m:040: range of that type.
invalid_int.m:043: Error: the 8-bit integer literal `128i8' is outside the
invalid_int.m:043: range of that type.
invalid_int.m:048: Error: the unsigned 8-bit integer literal `256u8' is outside
invalid_int.m:048: the range of that type.
invalid_int.m:049: Error: the unsigned 8-bit integer literal `257u8' is outside
invalid_int.m:049: the range of that type.
invalid_int.m:054: Error: the 16-bit integer literal `-32769i16' is outside the
invalid_int.m:054: range of that type.
invalid_int.m:057: Error: the 16-bit integer literal `32768i16' is outside the
invalid_int.m:057: range of that type.
invalid_int.m:063: Error: the unsigned 16-bit integer literal `65536u16' is
invalid_int.m:063: outside the range of that type.
invalid_int.m:068: Error: the 32-bit integer literal `-2147483649i32' is
invalid_int.m:068: outside the range of that type.
invalid_int.m:071: Error: the 32-bit integer literal `2147483648i32' is outside
invalid_int.m:071: the range of that type.
invalid_int.m:077: Error: the unsigned 32-bit integer literal `4294967296u32'
invalid_int.m:077: is outside the range of that type.