mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
Tokenize the power operator
This commit is contained in:
parent
10bce38a76
commit
1126efe8d2
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
// Matches any of the operator names:
|
// Matches any of the operator names:
|
||||||
// <<< >>> ||| &&& ^^^ ~~~ === !== ~>> <~> |~> <|> == != <= >= && || \\ <> ++ -- |> =~ -> <- ~> <~ :: .. = < > + - * / | . ^ & !
|
// <<< >>> ||| &&& ^^^ ~~~ === !== ~>> <~> |~> <|> == != <= >= && || \\ <> ++ -- |> =~ -> <- ~> <~ :: .. = < > + - * / | . ^ & !
|
||||||
operator:
|
operator:
|
||||||
/-[->]?|!={0,2}|\*|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,
|
||||||
|
|
||||||
// See https://hexdocs.pm/elixir/syntax-reference.html#variables
|
// See https://hexdocs.pm/elixir/syntax-reference.html#variables
|
||||||
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
variableName: /[a-z_][a-zA-Z0-9_]*[?!]?/,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue