Skip to content

Commit

Permalink
scripts: sort lytfs output before further processing
Browse files Browse the repository at this point in the history
Sort the output of the lytfs program before further processing—upstream noted
that they do not remember tacking determinism onto their generator (although it
does look deterministic), therefore it is on us to ensure we don't get flaky
runs that just re-order some lines, instead of actually adding new functions.

Signed-off-by: Luca Zeuch <l-zeuch@email.de>
  • Loading branch information
l-zeuch committed Jul 25, 2024
1 parent 77016d8 commit 392e0db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/gen_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def main():
with open(file, "rt") as fin:
funcs = [line.strip() for line in fin]

funcs.sort()
code = gen_code(funcs)

outfile = 'syntax/yagpdbcc/functions.vim'
Expand Down

0 comments on commit 392e0db

Please sign in to comment.