https://github.com/stackblitz/textmate
Repository containing the TextMate grammars used by StackBlitz
https://github.com/stackblitz/textmate
Last synced: 7 months ago
JSON representation
Repository containing the TextMate grammars used by StackBlitz
- Host: GitHub
- URL: https://github.com/stackblitz/textmate
- Owner: stackblitz
- License: mit
- Created: 2021-03-13T12:05:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T08:22:06.000Z (over 1 year ago)
- Last Synced: 2025-02-25T11:07:42.127Z (11 months ago)
- Language: TypeScript
- Size: 198 KB
- Stars: 12
- Watchers: 9
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# @blitz/textmate
[](https://github.com/stackblitz/textmate/actions/workflows/main.yaml)
> TextMate Grammars for StackBlitz
## Install
```
$ npm install @blitz/textmate
```
## API
### languages
List of TextMate grammar `LanguageDefinition`s.
### grammars
List of TextMate grammar `GrammarDefinition`s.
### getGrammarLocation(definition)
Retrieve the location of the grammar file for the provided definition.
#### definition
Type: `object`
Definition to retrieve the grammar location for.
### getLanguageConfigurationLocation(definition)
Retrieve the location of the language configuration file for the provided language definition.
#### definition
Type: `object`
Language definition to retrieve the language configuration location for.
### isGrammarDefinition(definition)
Check if the provided definition is a `GrammarDefinition`.
#### definition
Type: `object`
The definition to check for.
### isLanguageDefinition(definition)
Check if the provided definition is a `LanguageDefinition`.
#### definition
Type: `object`
The definition to check for.