Syntax highlighting and language support for the Anchor programming language - a systems language with Lisp syntax that compiles to C.
- Syntax highlighting for
.ancfiles - Bracket matching and auto-closing for
(),[],"" - Comment toggling with
;(Ctrl+/ / Cmd+/) - Indentation support for nested S-expressions
- Keywords -
fn,let,if,while,return,with-arena,struct,cast,sizeof,include,ffi,define-syntax, and more - Function definitions - name after
fn/fn-c - Macro definitions - name after
define-syntax - Type definitions - name after
struct/union/enum - Builtins -
cons,car,cdr,printf,list,null?,kb/mb/gb, type conversions (int->f64, etc.) - Operators - all prefix arithmetic (
+,f+,u+,f32+), comparison (==,<,f>=), bitwise (band,lshift), and logical (&&,||,!) - Literals - integers, hex (
0xFF), floats, strings with escape sequences, character literals (#\a,#\newline), booleans (#t/#f) - Reader macros -
',`,,,,@,#',#`,#,,#,@
- Open VS Code
- Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run Developer: Install Extension from Location...
- Select the
vscode-anchor/directory