CADS Configuration Syntax Extension
This VSCode extension provides syntax highlighting for CADS (Checksum Algorithm Discovery System) configuration files with the .cads extension.
Features
- Syntax highlighting for .cads configuration files
- Section highlighting for
[config] and [packets] sections
- Property highlighting for configuration keys and values
- Operation highlighting for algorithm operation names
- Hex value highlighting for packet data and checksums
- Comment support with
# line comments
- Auto-closing brackets and folding support
Supported Syntax
Configuration Section
[config]
name = Protocol Analysis Example
description = Checksum algorithm discovery configuration
complexity = advanced
max_fields = 4
max_constants = 209
early_exit = true
max_solutions = 1
progress_interval = 100
verbose = true
operations = ones_complement,const_add,xor
Packets Section
[packets]
# Packet data format: packet_hex checksum_hex [description]
9c30010000000000 31 CH1
9c30030000000000 33 CH3
9c300f0000010000 3e CH15
9c30020109000000 3a CH2+CTCSS09
Installation
Copy the vscode-cads-syntax folder to your VSCode extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions\
- macOS:
~/.vscode/extensions/
- Linux:
~/.vscode/extensions/
Restart VSCode
Open any .cads file to see syntax highlighting
Development
To modify this extension:
- Edit
syntaxes/cads.tmLanguage.json for syntax rules
- Edit
language-configuration.json for language features
- Reload VSCode window to see changes
License
MIT License - Part of the CADS project by TwilightCoders.
| |