mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
* Update gitignore.js * Update gitignore.js * Add custom color for negations * Add custom color for negations * Regex refactoring * Regex refactoring again * Move customTokenColors to a separate file * Move customTokenColors to a separate file * Update devdocs * Use kebab case for token names * Update negation color * Update index.html formatting
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
export function gitignoreDefinition() {
|
|
return {
|
|
defaultToken: 'invalid',
|
|
|
|
tokenizer: {
|
|
root: [
|
|
[/^#.*$/, 'comment'],
|
|
[/.*((?<!(^|\/))\*\*.*|\*\*(?!(\/|$))).*/, 'invalid'],
|
|
[/((?:^!\s*(?:\\\s|\S)+)?)((?:^\s*(?:\\\s|\S)+)?)((?:\s+(?:\\\s|\S)+)*)/, ['custom-gitignore.negation', 'tag', 'invalid']]
|
|
]
|
|
}
|
|
};
|
|
} |