From 7a4bf4cfabd5808f986003154585cde7eca248f9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 20 Aug 2017 22:03:31 -0700 Subject: 3976 --- global.mu | 14 ---------- html/global.mu.html | 75 ----------------------------------------------------- mu.vim | 2 +- vimrc.vim | 1 - 4 files changed, 1 insertion(+), 91 deletions(-) delete mode 100644 global.mu delete mode 100644 html/global.mu.html diff --git a/global.mu b/global.mu deleted file mode 100644 index 7e0c042f..00000000 --- a/global.mu +++ /dev/null @@ -1,14 +0,0 @@ -# example program: creating and using global variables - -def main [ - # allocate 5 locations for globals - global-space:space <- new location:type, 5 - # read to globals by using /space:global - 1:num/space:global <- copy 3 - foo -] - -def foo [ - # ditto for writing to globals - $print 1:num/space:global, 10/newline -] diff --git a/html/global.mu.html b/html/global.mu.html deleted file mode 100644 index f2c662b7..00000000 --- a/html/global.mu.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - -Mu - global.mu - - - - - - - - - - -
- 1 # example program: creating and using global variables
- 2 
- 3 def main [
- 4   # allocate 5 locations for globals
- 5   global-space:space <- new location:type, 5
- 6   # read to globals by using /space:global
- 7   1:num/space:global <- copy 3
- 8   foo
- 9 ]
-10 
-11 def foo [
-12   # ditto for writing to globals
-13   $print 1:num/space:global, 10/newline
-14 ]
-
- - - diff --git a/mu.vim b/mu.vim index 571df684..83a1f683 100644 --- a/mu.vim +++ b/mu.vim @@ -53,7 +53,7 @@ syntax match muLiteral %[^ ]\+:type/[^ ,]*\|[^ ]\+:type\>% syntax match muLiteral %[^ ]\+:offset/[^ ,]*\|[^ ]\+:offset\>% syntax match muLiteral %[^ ]\+:variant/[^ ,]*\|[^ ]\+:variant\>% highlight link muLiteral Constant -syntax keyword muKeyword default-space global-space new-default-space local-scope next-ingredient ingredient rewind-ingredients load-ingredients | highlight link muKeyword Constant +syntax keyword muKeyword default-space new-default-space local-scope next-ingredient ingredient rewind-ingredients load-ingredients | highlight link muKeyword Constant syntax match muDelimiter "[{}]" | highlight link muDelimiter Delimiter syntax match muAssign "<-" diff --git a/vimrc.vim b/vimrc.vim index 5587637e..972754f9 100644 --- a/vimrc.vim +++ b/vimrc.vim @@ -33,7 +33,6 @@ function! HighlightTangledFile() syntax match muLiteral %[^ ]\+:variant/[^ ,]*\|[^ ]\+:variant\>% highlight link muLiteral Constant syntax match muAssign " <- \|\" | highlight link muAssign SpecialChar - syntax match muGlobal %[^ ]\+:global/[^ ,]*\|[^ ]\+:global\>% | highlight link muGlobal SpecialChar " common keywords syntax match muRecipe "^recipe\>\|^recipe!\>\|^def\>\|^def!\>\|^before\>\|^after\>\| -> " | highlight muRecipe ctermfg=208 syntax match muScenario "^scenario\>" | highlight muScenario ctermfg=34 -- cgit 1.4.1-2-gfad0