1 USING: accessors alien.c-types alien.syntax classes.struct
2 colors kernel literals logging math ;
7 ! The purpose of this file is to test that corner cases are
8 ! highlighted correctly by FUEL. So if you change something in the
9 ! syntax highlighting and it breaks, things will be badly hightlighted
11 USING: alien.syntax kernel math ;
14 TUPLE: a-tuple slot1 slot2 { slot3 integer } { slot4 initial: "hi" } ;
19 TUPLE: initial-array { slot2 initial: { 123 } } slot3 ;
22 "containing \"escapes" drop
32 ! All slashes are symbol constituents.
33 : hack/slash ( t -- x ) ko>> ;
35 : um ( x y -- ) get\it<< ;
37 : slash\hack ( m -- y )
38 get\it>> dup >>get\it ;
40 : very-weird[33] ( -- ) ;
44 TUPLE: oh\no { and/again initial: "meh" } ;
47 : don't-do-that ( x -- y ) ;
49 ! Double quotes aren't right yet.
50 ! : do-"that" ( x -- y ) ;
53 C-TYPE: cairo_snurface_t
56 : stuff-with-chars ( -- K \n )
59 CHAR: \" ! <- \" should be highlighted
78 { -55 -0x10 100,00 1,000,000 0x2000,0000 0b01 } drop
91 FUNCTION: int futimes ( int id,
95 FUNCTION: int booyah ( int x )
96 FUNCTION-ALIAS: test int bah ( int* ah, int[] eh )
98 COLOR: #ffffff COLOR: green NAN: 1234 CHAR: m ALIEN: 93
101 PRIMITIVE: one ( a -- b )
102 PRIMITIVE: two ( c -- d )