From 2d991f16ffc470145e54c15bf6edb9e1e8c1d307 Mon Sep 17 00:00:00 2001 From: Alan Baker Date: Thu, 1 Aug 2024 14:36:12 -0400 Subject: [PATCH] update vim syntax generator --- utils/generate_vim_syntax.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/generate_vim_syntax.py b/utils/generate_vim_syntax.py index 5c9c6b21ae4..1d156a0cde4 100755 --- a/utils/generate_vim_syntax.py +++ b/utils/generate_vim_syntax.py @@ -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')