mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Separate operators from delimiters
This commit is contained in:
parent
134fe29df2
commit
a63a94a9af
1 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,8 @@ export const language = <ILanguage>{
|
||||||
{ include: "@strings" },
|
{ include: "@strings" },
|
||||||
|
|
||||||
[/[{}()\[\]]/, "@brackets"],
|
[/[{}()\[\]]/, "@brackets"],
|
||||||
[/([,;=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "punctuator"],
|
[/([=\+<>\-\*&@\?\/!])|([<>]=)|(<>)|(=>)|(\.\.\.)|(\.\.)/, "operator"],
|
||||||
|
[/[,;]/, "delimiter"],
|
||||||
],
|
],
|
||||||
|
|
||||||
whitespace: [
|
whitespace: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue