Microsoft/TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.

471

stars

1,026

commits

TypeScript

primary language

Jun 28, 2026

updated

README

TypeScript-TmLanguage

GitHub Actions CI

This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as Visual Studio Code, The TypeScript Sublime Plugin, Atom TypeScript, and possibly others.

Latest version of the grammar can be also found as a VSCode extension.

Contributing

The XML files are generated from the YAML files, so contributors should hand-modify the YAML files, and XML files should only be generated by running build script.

Install dependencies

npm install

Build

Compile the yaml file into the tmLanguage and tmTheme files

npm run build:grammar

Tests

npm test            # Compiles & runs tests

npm run diff        # Diffs the test baselines with generated one using tool set in environment variable DIFF
npm run accept      # Accepts the test baselines

Contributors

(top 30 of 39)

sheetalkamat

596 commits

typescript-bot

275 commits

anubmat

63 commits

rbuckton

20 commits

Microsoft/TypeScript-TmLanguage

TextMate grammar files for TypeScript for VS Code, Sublime Text, and Atom.

471

stars

1,026

commits

TypeScript

primary language

Jun 28, 2026

updated

README

TypeScript-TmLanguage

GitHub Actions CI

This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as Visual Studio Code, The TypeScript Sublime Plugin, Atom TypeScript, and possibly others.

Latest version of the grammar can be also found as a VSCode extension.

Contributing

The XML files are generated from the YAML files, so contributors should hand-modify the YAML files, and XML files should only be generated by running build script.

Install dependencies

npm install

Build

Compile the yaml file into the tmLanguage and tmTheme files

npm run build:grammar

Tests

npm test            # Compiles & runs tests

npm run diff        # Diffs the test baselines with generated one using tool set in environment variable DIFF
npm run accept      # Accepts the test baselines

Contributors

(top 30 of 39)

sheetalkamat

596 commits

typescript-bot

275 commits

anubmat

63 commits

rbuckton

20 commits

Languages

TypeScript

100.0%