mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
[RegistryPreview] Adopt Monaco Editor (#35122)
This commit is contained in:
committed by
GitHub
parent
b0be69a1b7
commit
f9127b63a5
13
src/Monaco/customLanguages/gitignore.js
Normal file
13
src/Monaco/customLanguages/gitignore.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export function gitignoreDefinition() {
|
||||
return {
|
||||
defaultToken: 'invalid',
|
||||
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/^#.*$/, 'comment'],
|
||||
[/.*((?<!(^|\/))\*\*.*|\*\*(?!(\/|$))).*/, 'invalid'],
|
||||
[/((?:^!\s*(?:\\\s|\S)+)?)((?:^\s*(?:\\\s|\S)+)?)((?:\s+(?:\\\s|\S)+)*)/, ['custom-gitignore.negation', 'tag', 'invalid']]
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user