NekoMaid UI Language Support
This extension adds syntax highlighting support for NekoMaid
UI (.neko_ui) files.
Features
Highlighting for the full NekoMaid language:
- Global and local variables:
var, local, input and $references.
- Layouts and widgets:
layout, with, def, output and in, with
native widgets (div, p, button, ...) told apart from custom widgets.
- Styles and selectors:
style div +class !class, * and conditional
styles.
- Conditions and loops:
if, for local x of, and class name if ....
- Events and triggers:
emit ... on <interaction>, on <trigger>(...),
with unknown interaction and trigger names marked as errors. Trigger
arguments are colored by kind: animation names for animation-end and
animation-stop, property names for property-changed and
target-changed, and class names for class-added and class-removed.
- Animations:
animation, keyframes, emit inside keyframes,
play ... for ... at ... loop ... continue, and chains with
and play, then play and then emit.
- Property flags:
inherit and target after a value, and the current
and target keywords in keyframes, including target.width.
- Metadata properties (
meta-*), colored apart from built-in properties.
- Compile-time args:
arg name of [...] declarations, @name references,
and conditions on import, def and animation.
- Named elements:
id name;.
- Expressions: numbers with units (
px, %, s, ms, deg), colors,
strings with escapes, lists, dicts, operators, if ... then ... else,
field access and builtin functions.
- Line and block comments.
The editor also understands block comments, [] and () brackets, and
selects dashed names like $god-mode as a single word.
| |