Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Candli Activity VS Code Extension

Syntax highlighting support for the Candli activity language used by .cact tutorial/activity files.

Features

  • Syntax highlighting for Candli activity files
  • Bracket matching and auto-closing
  • Folding support for step bodies
  • Grammar tests for the main parser-backed constructs

The grammar is based on the current Candli activity parser in app-core/src/activity/parser.rs and on the shipped activity files in the game creator repository.

Covered Syntax

  • step headers with optional image paths
  • Step descriptions as multiline quoted strings
  • define, capture, check, and run items
  • Configuration changes with +, -, @, and > operators
  • achieves metadata and if run metadata
  • Rule statements, unique, =>, relation operators, and ... wildcards
  • Object kinds (background, kinematic, dynamic, foreground, screen)
  • Mean keywords (arithmetic, geometric, harmonic)

Installation

From VS Code marketplace

Search for "Candli" in the VS Code extensions panel.

From source

git clone https://github.com/enlightware/cact-vscode.git
cd cact-vscode
npm install
npm run package
code --install-extension cact-*.vsix

Development

Prerequisites:

  • Node.js 18+
  • npm

Install dependencies:

make install

Validate the TextMate grammar:

make test

Package the extension:

make package

License

Apache-2.0

About

VSCode Syntax highlighting for the Candli activity language

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages