| 24 | } |
| 25 | |
| 26 | std::string_view HighlightToString(const Highlight highlight) |
| 27 | { |
| 28 | switch (highlight) { |
| 29 | case Highlight::AVOID: |
| 30 | return "avoid"; |
| 31 | case Highlight::NONE: |
| 32 | return ""; |
| 33 | case Highlight::NO_PRIORITY: |
| 34 | return "no_priority"; |
| 35 | case Highlight::UNSPECIFIED: |
| 36 | return "unspecified"; |
| 37 | case Highlight::PRIORITY: |
| 38 | return "priority"; |
| 39 | } |
| 40 | return ""; // invalid / unknown |
| 41 | } |
| 42 | |
| 43 | |
| 44 | const LuaInterface<LocationSection>::MethodMap LocationSection::Lua_Methods = {}; |