mirror of
https://github.com/livebook-dev/livebook.git
synced 2026-01-09 09:12:18 +08:00
Properly highlight piping into control flow structures
This commit is contained in:
parent
e9766ed7a5
commit
121eec784d
1 changed files with 10 additions and 1 deletions
|
|
@ -222,7 +222,16 @@ const ElixirMonarchLanguage = {
|
|||
[
|
||||
// Piping into a function (tokenized separately as it may not have parentheses)
|
||||
/(\|>)(\s*)(@variableName)/,
|
||||
["operator", "white", "function.call"],
|
||||
[
|
||||
"operator",
|
||||
"white",
|
||||
{
|
||||
cases: {
|
||||
"@otherKeywords": "keyword",
|
||||
"@default": "function.call",
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
[
|
||||
// Function reference passed to another function
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue