diff --git a/assets/js/cell/live_editor/elixir/monarch_language.js b/assets/js/cell/live_editor/elixir/monarch_language.js index 1a451e87e..8bce33a6c 100644 --- a/assets/js/cell/live_editor/elixir/monarch_language.js +++ b/assets/js/cell/live_editor/elixir/monarch_language.js @@ -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