<commit_before># LanguageInjector

Allows you to inject native language patterns.

It's more powerful than python regex parsing

Useful for adding `invalid` patterns or highlighting a language that is not supported by sublime text

![Example](https://raw.githubusercontent.com/Julow/LanguageInjector/master/captures/example.png)

_See below for usage_

### Installation

_Not available on Package Control yet_

`git clone` this repo in `%Sublime text location%/Packages/LanguageInjector/`

Folder name does not matter but it must be in `Packages/`

### Settings syntax

It's very simple to add patterns

Example:

```js
{
	"patterns": {

		// Simple rule "regexp": "scope"
		"[ \t]+$": "invalid.trailing",

		// Using captures
		"^ +(\t+)|^\t+( +)": {<commit_msg>Add Package Control link<commit_after># LanguageInjector

Allows you to inject native language patterns.

It's more powerful than python regex parsing

Useful for adding `invalid` patterns or highlighting a language that is not supported by sublime text

![Example](https://raw.githubusercontent.com/Julow/LanguageInjector/master/captures/example.png)

_See below for usage_

### Installation

[Using Package Control.](https://sublime.wbond.net/packages/LanguageInjector)

OR manually:

`git clone` this repo in `%Sublime text location%/Packages/LanguageInjector/`

Folder name does not matter but it must be in `Packages/`

### Settings syntax

It's very simple to add patterns

Example:

```js
{
	"patterns": {

		// Simple rule "regexp": "scope"
		"[ \t]+$": "invalid.trailing",

		// Using captures
		"^ +(\t+)|^\t+( +)": {
{'fraction_non_alphanumeric': 0.12138364779874214, 'fraction_numerical': 0.0, 'mean_word_length': 4.505190311418685, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4242136', 'n_tokens_mistral': 516, 'n_tokens_neox': 489, 'n_words': 168}