Skip to content

enlightware/cact-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors