about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2018-02-21 20:49:04 -0800
committerKartik K. Agaram <vc@akkartik.com>2018-02-21 20:49:04 -0800
commit816ffe20eb4d4df7a33d92c7305310226c19ff42 (patch)
tree1d40be2b3dd9bd8da978eb930ca6ba4195c05598
parentc1bb5eca952243e4ec4b8b0db218407a5a0260b3 (diff)
downloadmu-816ffe20eb4d4df7a33d92c7305310226c19ff42.tar.gz
4214
-rw-r--r--072recipe.cc3
-rw-r--r--mu.vim2
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