Skip to content

Commit

Permalink
differentiate error declaration from error usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenzek authored and aidenfoxivey committed Aug 10, 2024
1 parent 5c911f1 commit 86f7c55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Syntaxes/Zig.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ contexts:
captures:
1: storage.type.error.zig
2: punctuation.accessor.zig
3: entity.name.error.zig
3: constant.other.error.zig
enum_literal:
- match: '(^|\s+)(\.(?:[a-zA-Z_]\w*\b|@\"[^\"]*\"))(?!\(|\s*=[^=>])'
scope: constant.language.enum
Expand Down
2 changes: 1 addition & 1 deletion Syntaxes/syntax_test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ errdefer |err| std.debug.assert(err == error.Overflow);
// ^^ keyword.operator.logical.zig
// ^^^^^ storage.type.error.zig
// ^ punctuation.accessor.zig
// ^^^^^^^^ entity.name.error.zig
// ^^^^^^^^ constant.other.error.zig
// ^ punctuation.section.parens.end.zig
// ^ punctuation.terminator.zig

Expand Down

0 comments on commit 86f7c55

Please sign in to comment.