Skip to content

Commit

Permalink
fix error with enum literals
Browse files Browse the repository at this point in the history
  • Loading branch information
emekoi committed Oct 12, 2019
1 parent 065742a commit 3476c17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Syntaxes/Zig.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ repository:
name: storage.type.zig

enum_literal:
match: '(?<!\w)(\.(?:[a-zA-Z_][a-zA-Z0-9_]*|@\".+\"))'
match: '(?<!\w|\))(\.(?:[a-zA-Z_][a-zA-Z0-9_]*|@\".+\"))'
name: constant.language.enum

main:
Expand Down
2 changes: 1 addition & 1 deletion Syntaxes/Zig.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
<key>enum_literal</key>
<dict>
<key>match</key>
<string>(?&lt;!\w)(\.(?:[a-zA-Z_][a-zA-Z0-9_]*|@\".+\"))</string>
<string>(?&lt;!\w|\))(\.(?:[a-zA-Z_][a-zA-Z0-9_]*|@\".+\"))</string>
<key>name</key>
<string>constant.language.enum</string>
</dict>
Expand Down
1 change: 1 addition & 0 deletions Syntaxes/samples.zig
Original file line number Diff line number Diff line change
Expand Up @@ -332,3 +332,4 @@ const alignment = blk: {
if (a > 0) break :blk a;
break :blk 1;
};
std.debug.warn(run_qemu.getEnvMap().get("PATH"));

0 comments on commit 3476c17

Please sign in to comment.