Cerner CCL Language Support
Provides syntax highlighting, hover documentation, function search, table column autocomplete, language configuration, and code snippets for Cerner Command Language (CCL) files (.prg, .inc, .ccl) in VS Code, Antigravity IDE, and Open VSX.
Features
- Comments:
; and ! single-line comments (without interfering with !=), and /* ... */ block comments.
- Strings:
"...", '...', ^...^, and ~...~ string literals (treating \ as a literal character rather than an escape sequence, matching CCL compiler behavior).
- Keywords, Types & Built-ins: CCL control flow (
IF/ENDIF, FOR/ENDFOR, WHILE/ENDWHILE, SELECT/PLAN/JOIN/WITH, RECORD, SUBROUTINE, DROP/CREATE PROGRAM), data types (f4, f8, i1, i2, i4, ui1–ui4, w8, uw8, dq8, dm12, dm14, vc, gvc, zvc, zgvc, cN), built-in functions, uar_* calls, member access (-> / .), and % / %# directives.
- Hover Documentation & Parameter Hints: Hover over built-in CCL functions,
CALL / SET commands, keywords, data types, and % directives to view syntax, parameter descriptions, option tables, and examples; live parameter signature help triggers on ( and ,.
- Function & Reference Search: Run
CCL: Search Functions & Reference from the Command Palette to fuzzy-search all 440 CCL functions, commands, clauses, data types, and directives by name, category, or description, and open a formatted reference panel with syntax, parameters, option tables, examples, and one-click Insert / Copy actions.
- Table Column Autocomplete (
.): Type a table alias or table name followed by . (e.g., OA. with FROM ORDER_ACTION OA) to pop up * plus all matching Cerner Millennium columns from the bundled 6,002-table data dictionary (supporting SELECT, PLAN/JOIN/WHERE/ORDER BY/DETAIL, DUMMYT, ANSI & parenthesized joins, inline subqueries, and UPDATE/DELETE/INSERT).
- Language Configuration & Snippets: Auto-closing pairs, indentation rules, and snippets for
select, update, delete, declare, if, ifelse, for, while, subroutine, record, and program.
Development & Packaging
Regenerate the TextMate grammar:
python generate_grammar.py
Package the extension into a .vsix file:
npx @vscode/vsce package
Automated Publishing (Open VSX & VS Code Marketplace)
The .github/workflows/publish.yml workflow packages and publishes the extension to Open VSX and the Visual Studio Marketplace automatically when a v* tag is pushed (or when triggered manually via Actions → Run workflow).
One-time setup
- Open VSX: Add a repository secret named
OVSX_PAT in GitHub → Settings → Secrets and variables → Actions containing your Open VSX Personal Access Token.
- VS Code Marketplace: Configure a Trusted Publishing policy for
neoversionsix/CCL-Syntax-Highlighting-for-antigravity-IDE (publish.yml) on the Visual Studio Marketplace publisher portal (no PAT secret required; uses OIDC via id-token: write and --oidc).
Releasing a new version
- Update
"version" in package.json (e.g. 0.0.6), commit, and push to main.
- Tag the commit with a matching
v prefix and push the tag:
git tag v0.0.6
git push origin v0.0.6
| |