Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ninja syntaxNew to Visual Studio Code? Get it now.
ninja syntax

ninja syntax

melak47

|
12,514 installs
| (2) | Free
Syntax highlighting for ninja build files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ninja syntax

Synxtax highlighting for ninja build files adapted from SublimeNinja.

Features

Direct port of SublimeNinja, with minor fixes.

Release Notes

1.0.0

  • Tweak regex to not match comments following declarations.

    Even though the ninja manual does not explicitly state this,

    • Comments cannot follow variable declarations (since the # will simply be part of the string)
    • Comments cannot follow rule declarations (parser errors occur)

    Change regex so these are not mistakenly highlighted as comments.

  • Configure line comment symbol (#) so editor.action.commentLine etc. will work properly.

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