Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AnimalNew to Visual Studio Code? Get it now.
Animal

Animal

Łukasz Bielaszewski

|
3 installs
| (0) | Free
Extension for Animal programming language, featuring syntax coloring and smart completion.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Animal VS Code Extension

Language support for the Animal programming language. The extension ships a tuned TextMate grammar, curated editor defaults, and helper docs so you can read and write .anml files comfortably inside Visual Studio Code.

Features

  • Syntax highlighting for directives (%time, %debug, !shelter, %bestiary), control flow keywords, operators, numeric literals, strings, built-ins, and standard library helpers.
  • Comment toggling with ::, plus automatic pairing for braces, brackets, parentheses, single quotes, and double quotes.
  • Default token color customization that makes headliner directives stand out across all themes.
  • Extension icon for easy recognition of .anmlfiles.

Getting Started

  • Install the extension from a VSIX package or run it in an Extension Development Host (F5 from this repository).
  • Open or create files ending in .anml; the animal language id is applied automatically.
  • Reload the VS Code window (Developer: Reload Window) whenever you tweak the grammar or configuration while testing.

Language Highlights

#!/usr/bin/env animal

%time

nest Cat {
    name
    howl speak() {
        roar this.name purr ", says Meow!"
    }
}

growl count <= 0 {
    roar "All done." sniffback
} sniff count == 1 {
    roar "One to go!" sniffback
} wag {
    count -> count woof 1
}

Customizing Colors

The grammar exposes scopes such as keyword.other.directive.animal, support.function.builtin.animal, support.function.library.animal, and support.function.list.animal. Override them in your personal settings.json:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": "support.function.builtin.animal",
      "settings": { "foreground": "#87ceeb" }
    }
  ]
}

License

Distributed under the terms described in LICENSE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft