Synapse (.mnm) Syntax Highlighter
Syntax highlighting for the Synapse memory configuration language (.mnm files).
Installation
From workspace (development)
- Open the Synapse project in VS Code/Cursor
- Open
extensions/synapse-vscode in the editor
- Press
F5 or Run > Start Debugging to launch a new window with the extension loaded
- Open any
.mnm file to see syntax highlighting
Install locally (packaged)
cd extensions/synapse-vscode
npm install
vsce package
code --install-extension synapse-mnm-0.1.0.vsix
Features
- Comments:
# line comments
- Keywords:
config, memory, namespace, query, update, on, fn, policy, if, else, let, for, in, etc.
- Types:
string, int, float, bool, timestamp
- Literals: numbers, durations (
24h, 7d), booleans, null
- Strings: double- and single-quoted
- Decorators:
@extern, @index, @invariant
- Built-ins:
store, now, supersede, discard, emit, extract, map, filter, etc.
- Operators:
|>, ->, =>, ==, !=, arithmetic
Language configuration
- Line comment:
#
- Bracket matching for
{}, [], ()
- Auto-closing pairs for quotes and brackets
| |