History

20120410-2044

forsyth committed 14 years ago

Commit 2b46bda1 parent 0ffec3f6 files · +147 −1Browse files

Unified · Split

6 files
  1. Plan9/include/lib9.h +20 −0
  2. doc/acme/mkfile +4 −0
  3. doc/descent/mkfile +15 −0
  4. doc/perform/mkfile +15 −0
  5. include/version.h +1 −1
  6. lib/limbo.vim +92 −0
Plan9/include/lib9.h+20−0
@@ -0,0 +1,20 @@
1+#include <u.h>
2+typedef usize size_t;
3+
4+#define Runeerror xRuneerror
5+#define Rendez xRendez
6+#include <libc.h>
7+#undef Runeerror
8+#undef Rendez
9+
10+
11+enum
12+{
13+ Runeerror = 0x80, /* decoding error in UTF */
14+};
15+/*
16+ * Extensions for Inferno to basic libc.h
17+ */
18+
19+#define setbinmode()
20+#define USE_FPdbleword
doc/acme/mkfile+4−0
@@ -0,0 +1,4 @@
1+<../fonts
2+
3+acme.ps:D: acme.ms
4+ {echo $FONTS; cat acme.ms} | troff -mpm -mpictures -mnihongo | lp -dstdout >acme.ps
doc/descent/mkfile+15−0
@@ -0,0 +1,15 @@
1+<../fonts.pal
2+
3+descent.pdf:D: descent.ps
4+
5+descent.ps:D: descent.ms f1.ps f2.ps f3.ps mkfile
6+ {echo $FONTS; cat descent.ms} | tbl | troff -mpm -mpictures | dpost >$target
7+
8+%.ps: %.gif
9+ dpost <$stem.gif >$stem.ps
10+
11+%.ps: %.bit
12+ aux/p9bitpost -b100 <$stem.bit >$stem.ps
13+
14+%.pdf: %.ps
15+ ps2pdf <$stem.ps >$stem.pdf
doc/perform/mkfile+15−0
@@ -0,0 +1,15 @@
1+<../fonts.pal
2+
3+%.ps:D: %.ms
4+ { echo $FONTS; cat $stem.ms } | grap | pic | tbl | troff -mpm | lp -dstdout > $target
5+
6+FILES = \
7+ perform.ps \
8+
9+all:V: $FILES
10+
11+perform.ps:D: perform.ms x0base.gr x0baseo.gr \
12+ x0baseh.gr x0baseho.gr \
13+ x9gc.gr x9gc200.gr \
14+ x31.gr x27base.gr x27base200.gr \
15+ x28base.gr x28basehd.gr x29basehd.gr
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20120305)"
1+#define VERSION "Fourth Edition (20120410)"
lib/limbo.vim+92−0
@@ -0,0 +1,92 @@
1+" Vim syntax file
2+" Language: Limbo
3+" Maintainer: Alex Efros <powerman-asdf@ya.ru>
4+" Version: 0.5
5+" Updated: 2008-10-17
6+
7+" Remove any old syntax stuff that was loaded (5.x) or quit when a syntax file
8+" was already loaded (6.x).
9+if version < 600
10+ syntax clear
11+elseif exists("b:current_syntax")
12+ finish
13+endif
14+
15+syn keyword lTodo TODO TBD FIXME XXX BUG contained
16+syn match lComment "#.*" contains=@Spell,lTodo
17+
18+syn keyword lInclude include
19+
20+syn match lSpecialChar display contained "\\\(u\x\{4}\|['\"\\tnrbavf0]\)"
21+syn match lSpecialError display contained "\(\\[^'\"\\tnrbavf0u]\+\|\\u.\{0,3}\X\)"
22+syn match lCharError display contained "\([^\\'][^']\+\|\\[^'][^']\+\)"
23+syn region lString start=+"+ end=+"+ skip=+\\"+ contains=@Spell,lSpecialChar,lSpecialError
24+syn region lCharacter start=+'+ end=+'+ skip=+\\'+ contains=lSpecialChar,lSpecialError,lCharError
25+
26+syn keyword lSpecial nil iota
27+
28+syn keyword lFunction tl hd len tagof
29+syn match lFunction "<-=\?"
30+
31+syn keyword lStatement alt break continue exit return spawn implement import load raise
32+syn keyword lRepeat for while do
33+syn keyword lConditional if else case
34+
35+syn keyword lType array big byte chan con int list real string fn fixed
36+syn keyword lStructure adt pick module
37+syn keyword lStorageClass ref self cyclic type of
38+
39+syn keyword lDelimiter or to
40+syn match lDelimiter "=>\|->\|\.\|::"
41+
42+
43+if version >= 508 || !exists("did_icgiperl_syn_inits")
44+ if version < 508
45+ let did_icgiperl_syn_inits = 1
46+ command -nargs=+ HiLink hi link <args>
47+ else
48+ command -nargs=+ HiLink hi def link <args>
49+ endif
50+
51+ " Comment
52+ HiLink lComment Comment
53+
54+ " PreProc (Include, PreCondit)
55+ HiLink lInclude Include
56+
57+ " Constant (String, Character, Number, Boolean, Float)
58+ HiLink lString String
59+ HiLink lCharacter Character
60+
61+ " Special (Tag, SpecialChar, SpecialComment, Debug)
62+ HiLink lSpecial Special
63+ HiLink lSpecialChar SpecialChar
64+
65+ " Identifier (Function)
66+ HiLink lFunction Function
67+
68+ " Statement (Conditional, Repeat, Label, Operator, Keyword, Exception)
69+ HiLink lStatement Statement
70+ HiLink lRepeat Repeat
71+ HiLink lConditional Conditional
72+
73+ " Type (StorageClass, Structure, Typedef)
74+ HiLink lType Type
75+ HiLink lStructure Structure
76+ HiLink lStorageClass StorageClass
77+
78+ " Error
79+ HiLink lSpecialError Error
80+ HiLink lCharError Error
81+
82+ " Todo
83+ HiLink lTodo Todo
84+
85+ " Delimiter
86+ HiLink lDelimiter Delimiter
87+
88+ delcommand HiLink
89+endif
90+
91+
92+let b:current_syntax = "limbo"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t