Skip to content

Commit

Permalink
[C] Update keywords-parens for alignof and static_assert
Browse files Browse the repository at this point in the history
I overlooked this previously but I believe this is an optimization
for sizeof that would also apply these two that I previously added.
  • Loading branch information
James Buren committed Oct 31, 2024
1 parent b852edd commit b6d193a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/C.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ contexts:
scope: constant.other.c

keywords-parens:
- match: '\b(sizeof)\b\s*(\()'
- match: '\b(sizeof|alignof|_Alignof|static_assert|_Static_assert)\b\s*(\()'
captures:
1: keyword.operator.word.c
2: meta.group.c punctuation.section.group.begin.c
Expand Down

0 comments on commit b6d193a

Please sign in to comment.