summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-05 03:36:25 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-05 03:36:25 -0600
commitf4801b8134c88718f49292470fddf01cd630a57f (patch)
treee7be33c93a43ca3e01936fb9c5b5c14e22e7415f /hscript/meta.cc
parent08ec429042ff27d80c9bb978b12ca6ba2fb27b6b (diff)
downloadhorizon-f4801b8134c88718f49292470fddf01cd630a57f.tar.gz
horizon-f4801b8134c88718f49292470fddf01cd630a57f.tar.bz2
horizon-f4801b8134c88718f49292470fddf01cd630a57f.tar.xz
horizon-f4801b8134c88718f49292470fddf01cd630a57f.zip
Actually refactor valid_keymaps into a reusable component
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index ef6ff44..b5309f3 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -312,16 +312,7 @@ bool Language::execute(ScriptOptions opts) const {
}
-const std::set<std::string> valid_keymaps = {
- "us", "ad", "af", "ara", "al", "am", "at", "az", "by", "be", "bd", "in",
- "ba", "br", "bg", "ma", "mm", "ca", "cd", "cn", "hr", "cz", "dk", "nl",
- "bt", "ee", "ir", "iq", "fo", "fi", "fr", "gh", "gn", "ge", "de", "gr",
- "hu", "is", "il", "it", "jp", "kg", "kh", "kz", "la", "latam", "lt", "lv",
- "mao", "me", "mk", "mt", "mn", "no", "pl", "pt", "ro", "ru", "rs", "si",
- "sk", "es", "se", "ch", "sy", "tj", "lk", "th", "tr", "ua", "gb", "uz",
- "vn", "kr", "ie", "pk", "mv", "za", "epo", "np", "ng", "et", "sn", "brai",
- "tm", "ml", "tz", "ke", "bw", "ph"
-};
+#include "util/keymaps.hh"
Key *Keymap::parseFromData(const std::string &data, int lineno, int *errors,
int *) {