# TypeScript-TmLanguage
[![Build status](https://travis-ci.org/Microsoft/TypeScript-TmLanguage.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript-TmLanguage)

This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-typescript), and possibly others.

Latest version of the grammar can be also found as a [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar).

# 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
``` sh
npm install
```

## Build

Compile the yaml file into the tmLanguage and tmTheme files

``` sh
npm run build:grammar
```

## Tests

``` sh
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
```

# TypeScript-TmLanguage
[![Build Status](https://dev.azure.com/ms/TypeScript-TmLanguage/_apis/build/status/Microsoft.TypeScript-TmLanguage)](https://dev.azure.com/ms/TypeScript-TmLanguage/_build/latest?definitionId=15)
[![Build status](https://travis-ci.org/Microsoft/TypeScript-TmLanguage.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript-TmLanguage)

This repository contains TmLanguage files that are consumed by TypeScript editors and plugins such as [Visual Studio Code](https://github.com/Microsoft/vscode), [The TypeScript Sublime Plugin](https://github.com/Microsoft/TypeScript-Sublime-Plugin), [Atom TypeScript](https://github.com/TypeStrong/atom-typescript), and possibly others.

Latest version of the grammar can be also found as a [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar).

# 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
``` sh
npm install
```

## Build

Compile the yaml file into the tmLanguage and tmTheme files

``` sh
npm run build:grammar
```

## Tests

``` sh
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
```

Add Pipelines Build Status Badge
Add Pipelines Build Status Badge