authorgravatar for tssund93@gmail.comTravis <tssund93@gmail.com> 2020-10-30 09:46:01-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-10-30 21:26:05+02:00
logbb6e39e274eb0a68bfb1029ab75d1791abeb2911
tree17cd3917af904ac2b5bbb63e9cd44effda687c30
parente59f44712d50de8e2e0c9c6515cde6636b124f26

remove extra space in .** error message


3 files changed, 3 insertions(+), 3 deletions(-)

lib/std/zig/ast.zig+1-1
...@@ -326,7 +326,7 @@ pub const Error = union(enum) {...@@ -326,7 +326,7 @@ pub const Error = union(enum) {
326 pub const ExtraAllowZeroQualifier = SimpleError("Extra allowzero qualifier");326 pub const ExtraAllowZeroQualifier = SimpleError("Extra allowzero qualifier");
327 pub const DeclBetweenFields = SimpleError("Declarations are not allowed between container fields");327 pub const DeclBetweenFields = SimpleError("Declarations are not allowed between container fields");
328 pub const InvalidAnd = SimpleError("`&&` is invalid. Note that `and` is boolean AND.");328 pub const InvalidAnd = SimpleError("`&&` is invalid. Note that `and` is boolean AND.");
329 pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?");329 pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?");
330330
331 pub const ExpectedCall = struct {331 pub const ExpectedCall = struct {
332 node: *Node,332 node: *Node,
src/stage1/tokenizer.cpp+1-1
...@@ -594,7 +594,7 @@ void tokenize(Buf *buf, Tokenization *out) {...@@ -594,7 +594,7 @@ void tokenize(Buf *buf, Tokenization *out) {
594 case TokenizeStateSawDotStar:594 case TokenizeStateSawDotStar:
595 switch (c) {595 switch (c) {
596 case '*':596 case '*':
597 tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?");597 tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?");
598 break;598 break;
599 default:599 default:
600 t.pos -= 1;600 t.pos -= 1;
test/compile_errors.zig+1-1
...@@ -8216,6 +8216,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {...@@ -8216,6 +8216,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
8216 \\ var sequence = "repeat".*** 10;8216 \\ var sequence = "repeat".*** 10;
8217 \\}8217 \\}
8218 , &[_][]const u8{8218 , &[_][]const u8{
8219 "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?",8219 "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?",
8220 });8220 });
8221}8221}