From 816ffe20eb4d4df7a33d92c7305310226c19ff42 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 21 Feb 2018 20:49:04 -0800 Subject: 4214 --- 072recipe.cc | 3 ++- mu.vim | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/072recipe.cc b/072recipe.cc index fc53df09..99411e31 100644 --- a/072recipe.cc +++ b/072recipe.cc @@ -445,10 +445,11 @@ def foo {f: (recipe num -> num)} [ :(before "End Mu Types Initialization") put(Type_abbreviations, "function", new_type_tree("recipe")); +put(Type_abbreviations, "fn", new_type_tree("recipe")); :(scenario call_function) def main [ - {1: (function number -> number)} <- copy f + {1: (fn number -> number)} <- copy f 2:num <- call {1: (function number -> number)}, 34 ] def f x:num -> y:num [ diff --git a/mu.vim b/mu.vim index bf8e4924..967136e2 100644 --- a/mu.vim +++ b/mu.vim @@ -84,7 +84,7 @@ highlight muControl ctermfg=3 syntax match muRecipe "->" syntax match muRecipe "^recipe\>\|^def\>\|^before\>\|^after\>\| -> " -syntax keyword muRecipe recipe! def! +syntax keyword muRecipe recipe! def! function fn highlight muRecipe ctermfg=208 syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 -- cgit 1.4.1-2-gfad0