Mercurial > vim
view runtime/macros/maze/maze.c @ 23450:a8e7acf71fa4 v8.2.2268
patch 8.2.2268: Vim9: list unpack seen as declaration
Commit: https://github.com/vim/vim/commit/3862ea3f620f02569c2d816ca9ceeeac3a0ad901
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 1 21:05:55 2021 +0100
patch 8.2.2268: Vim9: list unpack seen as declaration
Problem: Vim9: list unpack seen as declaration.
Solution: Check for "var". (closes https://github.com/vim/vim/issues/7594)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 01 Jan 2021 21:15:04 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
char*M,A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf(M="%d",&C); -- E; J[ E] =T [E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|" ) , A = 39 ,C -- ) ; Z || printf (M ))M[Z]=Z[A-(E =A[J-Z])&&!C & A == T[ A] |6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-Z]=A,"_.":" |"];}