Tom Language is a lightweight Visual Studio Code extension that provides syntax highlighting for Taiwa Object Module (TOM) source files.
- Rich TextMate grammar for TOM keywords, types, classes, functions, variables, constants, operators, and preprocessor directives.
- Scoped highlighting inside strings, comments, and generic parameter lists.
- Comment TODO markers and emphasized assignment targets to surface common review items.
*.toms(TOM source files)
TOM (Taiwa Object Module) is used to customize Jissun Boushi CAD software. The language resembles C-style languages and is organised around classes, members, and executable blocks.
- Modules contain classes, and classes contain member functions, variables, and constants.
- Key module declarations include
title,author,native, andattach. - Classes may be marked
public,private,final, orabstractand can derive from base classes withextends. - Member variables and constants follow C-style declarations, while member functions define access modifiers, storage modifiers, and parameter lists.
- Comments support single line (
//) and multi-line (/* ... */) forms.
Understanding these conventions helps when validating the highlighted scopes produced by the grammar.
- Install the extension from the Visual Studio Code Marketplace (search for Tom Language).
- Open a
.tomsfile. VS Code automatically associates the file with the TOM language ID. - Leverage TOM-aware syntax coloring and highlighting while editing
This repository contains only declarative contributions (grammar and configuration). If you modify the grammar:
- Update
syntaxes/tom.tmLanguage.json. - Reload VS Code with the
Developer: Reload Windowcommand to test changes. - Bump the version in
package.jsonand updateCHANGELOG.mdbefore publishing.
- CHANGELOG for release history.
- vsc-extension-quickstart for VS Code extension development tips.