From 93bba111900af7cbae7ec72c29e6bd0f8ab900e9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 4 Dec 2024 12:49:15 +0100 Subject: Add .exrc for folding. --- .exrc | 2 ++ rules.js | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 .exrc diff --git a/.exrc b/.exrc new file mode 100644 index 0000000..07e6315 --- /dev/null +++ b/.exrc @@ -0,0 +1,2 @@ +set foldmethod=expr +set foldexpr=getline(v:lnum)=~'//\ ==='?'>1':'=' diff --git a/rules.js b/rules.js index b3e1385..40704eb 100644 --- a/rules.js +++ b/rules.js @@ -53,6 +53,8 @@ function debug_hexes(n, list) { console.log("".padStart(y," ") + list.slice(y*hexw, (y+1)*hexw).map(x=>String(x).padStart(2, ' ')).join("")) } +// === CONSTS === + const AXIS = 'Axis' const ALLIED = 'Allied' -- cgit v1.2.3