Skip to content

Commit

Permalink
update vim syntax generator
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-baker committed Aug 1, 2024
1 parent f40eb13 commit 27841c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/generate_vim_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,17 @@ def main():
print('\n" Core instructions')
for inst in core["instructions"]:
EmitAsStatement(inst['opname'])
aliases = inst.get('aliases', [])
for alias in aliases:
EmitAsStatement(alias)
print('\n" Core operand enums')
for operand_kind in core["operand_kinds"]:
if 'enumerants' in operand_kind:
for e in operand_kind['enumerants']:
EmitAsEnumerant(e['enumerant'])
aliases = e.get('aliases', [])
for a in aliases:
EmitAsEnumerant(a)

if args.extinst_glsl_grammar is not None:
print('\n" GLSL.std.450 extended instructions')
Expand Down

0 comments on commit 27841c9

Please sign in to comment.