Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/highlight.lhs.ref
Show All 11 Lines | |||||
12 | <Text></Text><br/> | 12 | <Text></Text><br/> | ||
13 | <Text>I could even start a new</Text><br/> | 13 | <Text>I could even start a new</Text><br/> | ||
14 | <Text>one-line comment.</Text><br/> | 14 | <Text>one-line comment.</Text><br/> | ||
15 | <Text></Text><br/> | 15 | <Text></Text><br/> | ||
16 | <Text>-}</Text><br/> | 16 | <Text>-}</Text><br/> | ||
17 | <Text></Text><br/> | 17 | <Text></Text><br/> | ||
18 | <Text>a data definition</Text><br/> | 18 | <Text>a data definition</Text><br/> | ||
19 | <Text></Text><br/> | 19 | <Text></Text><br/> | ||
20 | <BirdTrack>></BirdTrack><Text> </Text><Keyword>data</Keyword><Text> </Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text> </Text><Operator>=</Operator><Text> </Text><Type>Br</Type><Text> (</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>) (</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>) </Text><Operator>|</Operator><Text> </Text><Type>Leaf</Type><Text> </Text><Function>a</Function><Text> </Text><Operator>|</Operator><Text> </Text><Type>Nil</Type><Text> </Text><Keyword>deriving</Keyword><Text> (</Text><Class Prelude>Show</Class Prelude><Text>, </Text><Class Prelude>Eq</Class Prelude><Text>)</Text><br/> | 20 | <BirdTrack>></BirdTrack><Text> </Text><Keyword>data</Keyword><Text> </Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text> </Text><Special>=</Special><Text> </Text><Type>Br</Type><Text> (</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>) (</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>) </Text><Operator>|</Operator><Text> </Text><Type>Leaf</Type><Text> </Text><Function>a</Function><Text> </Text><Operator>|</Operator><Text> </Text><Type>Nil</Type><Text> </Text><Keyword>deriving</Keyword><Text> (</Text><Class Prelude>Show</Class Prelude><Text>, </Text><Class Prelude>Eq</Class Prelude><Text>)</Text><br/> | ||
21 | <Text></Text><br/> | 21 | <Text></Text><br/> | ||
22 | <Text></Text><br/> | 22 | <Text></Text><br/> | ||
23 | <Text>function definition, "funnyfunction::", "Integer", "Int", "Bool" should be highlighted</Text><br/> | 23 | <Text>function definition, "funnyfunction::", "Integer", "Int", "Bool" should be highlighted</Text><br/> | ||
24 | <Text></Text><br/> | 24 | <Text></Text><br/> | ||
25 | <BirdTrack>></BirdTrack><Signature> funnyfunction</Signature><Special>::</Special><Text>(</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>)</Text><Special>=></Special><Text>[</Text><Function>a</Function><Text>]</Text><Special>-></Special><Type Prelude>Integer</Type Prelude><Special>-></Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>Bool</Type Prelude><br/> | 25 | <BirdTrack>></BirdTrack><Signature> funnyfunction</Signature><Special>::</Special><Text>(</Text><Type>Tree</Type><Text> </Text><Function>a</Function><Text>)</Text><Special>=></Special><Text>[</Text><Function>a</Function><Text>]</Text><Special>-></Special><Type Prelude>Integer</Type Prelude><Special>-></Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>Bool</Type Prelude><br/> | ||
26 | <Text></Text><br/> | 26 | <Text></Text><br/> | ||
27 | <Text></Text><br/> | 27 | <Text></Text><br/> | ||
28 | <Text>strings and chars</Text><br/> | 28 | <Text>strings and chars</Text><br/> | ||
29 | <Text>first line of function definitions (type declaration) should be highlighted</Text><br/> | 29 | <Text>first line of function definitions (type declaration) should be highlighted</Text><br/> | ||
30 | <Text></Text><br/> | 30 | <Text></Text><br/> | ||
31 | <BirdTrack>></BirdTrack><Signature> strangefunction</Signature><Special>::</Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>String</Type Prelude><br/> | 31 | <BirdTrack>></BirdTrack><Signature> strangefunction</Signature><Special>::</Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>String</Type Prelude><br/> | ||
32 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>1</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><String>"hello"</String><br/> | 32 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>1</Decimal><Text> </Text><Special>=</Special><Text> </Text><String>"hello"</String><br/> | ||
33 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><String>"what's up"</String><br/> | 33 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Special>=</Special><Text> </Text><String>"what's up"</String><br/> | ||
34 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>3</Decimal><Text> </Text><Operator>=</Operator><Text> (</Text><Function>strangefunction</Function><Text> </Text><Decimal>1</Decimal><Text>) </Text><Operator>++</Operator><Text> </Text><String>", "</String><Text> </Text><Operator>++</Operator><Text> (</Text><Function>strangefunction</Function><Text> </Text><Decimal>2</Decimal><Text>)</Text><br/> | 34 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>3</Decimal><Text> </Text><Special>=</Special><Text> (</Text><Function>strangefunction</Function><Text> </Text><Decimal>1</Decimal><Text>) </Text><Operator>++</Operator><Text> </Text><String>", "</String><Text> </Text><Operator>++</Operator><Text> (</Text><Function>strangefunction</Function><Text> </Text><Decimal>2</Decimal><Text>)</Text><br/> | ||
35 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>4</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Char>'a'</Char><Operator>:</Operator><Char>'b'</Char><Operator>:</Operator><Char>'c'</Char><Operator>:</Operator><Char>'"'</Char><Operator>:</Operator><Text>[] </Text><Comment>-- will return "abc"</Comment><br/> | 35 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>4</Decimal><Text> </Text><Special>=</Special><Text> </Text><Char>'a'</Char><Operator>:</Operator><Char>'b'</Char><Operator>:</Operator><Char>'c'</Char><Operator>:</Operator><Char>'"'</Char><Operator>:</Operator><Text>[] </Text><Comment>-- will return "abc"</Comment><br/> | ||
36 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>5</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Char>'\n'</Char><Operator>:</Operator><Text>[]</Text><br/> | 36 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>5</Decimal><Text> </Text><Special>=</Special><Text> </Text><Char>'\n'</Char><Operator>:</Operator><Text>[]</Text><br/> | ||
37 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>6</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Char>'\invalidhaskell'</Char><Operator>:</Operator><Text>[]</Text><br/> | 37 | <BirdTrack>></BirdTrack><Text> </Text><Function>strangefunction</Function><Text> </Text><Decimal>6</Decimal><Text> </Text><Special>=</Special><Text> </Text><Char>'\invalidhaskell'</Char><Operator>:</Operator><Text>[]</Text><br/> | ||
38 | <Text></Text><br/> | 38 | <Text></Text><br/> | ||
39 | <Text>function name including the single quote character</Text><br/> | 39 | <Text>function name including the single quote character</Text><br/> | ||
40 | <Text>and infix operator (`div`)</Text><br/> | 40 | <Text>and infix operator (`div`)</Text><br/> | ||
41 | <Text></Text><br/> | 41 | <Text></Text><br/> | ||
42 | <BirdTrack>></BirdTrack><Signature> justtesting'</Signature><Special>::</Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>Int</Type Prelude><br/> | 42 | <BirdTrack>></BirdTrack><Signature> justtesting'</Signature><Special>::</Special><Type Prelude>Int</Type Prelude><Special>-></Special><Type Prelude>Int</Type Prelude><br/> | ||
43 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting'</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Decimal>2</Decimal><Operator>+</Operator><Decimal>1</Decimal><br/> | 43 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting'</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Special>=</Special><Text> </Text><Decimal>2</Decimal><Operator>+</Operator><Decimal>1</Decimal><br/> | ||
44 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting'</Function><Text> </Text><Decimal>9</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Decimal>7</Decimal><Text> </Text><Function Infix>`div`</Function Infix><Text> </Text><Decimal>2</Decimal><br/> | 44 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting'</Function><Text> </Text><Decimal>9</Decimal><Text> </Text><Special>=</Special><Text> </Text><Decimal>7</Decimal><Text> </Text><Function Infix>`div`</Function Infix><Text> </Text><Decimal>2</Decimal><br/> | ||
45 | <Text></Text><br/> | 45 | <Text></Text><br/> | ||
46 | <Text>same definition as above, slightly different function name and a couple more whitespaces</Text><br/> | 46 | <Text>same definition as above, slightly different function name and a couple more whitespaces</Text><br/> | ||
47 | <Text></Text><br/> | 47 | <Text></Text><br/> | ||
48 | <BirdTrack>></BirdTrack><Signature> justtesting'' </Signature><Special>::</Special><Text> </Text><Type Prelude>Int</Type Prelude><Text> </Text><Special>-></Special><Text> </Text><Type Prelude>Int</Type Prelude><br/> | 48 | <BirdTrack>></BirdTrack><Signature> justtesting'' </Signature><Special>::</Special><Text> </Text><Type Prelude>Int</Type Prelude><Text> </Text><Special>-></Special><Text> </Text><Type Prelude>Int</Type Prelude><br/> | ||
49 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting''</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Decimal>3</Decimal><br/> | 49 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting''</Function><Text> </Text><Decimal>2</Decimal><Text> </Text><Special>=</Special><Text> </Text><Decimal>3</Decimal><br/> | ||
50 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting''</Function><Text> </Text><Decimal>9</Decimal><Text> </Text><Operator>=</Operator><Text> </Text><Decimal>3</Decimal><Text> </Text><Operator>+</Operator><Text> </Text><Decimal>9</Decimal><Text> </Text><Operator>-</Operator><Text> </Text><Decimal>9</Decimal><br/> | 50 | <BirdTrack>></BirdTrack><Text> </Text><Function>justtesting''</Function><Text> </Text><Decimal>9</Decimal><Text> </Text><Special>=</Special><Text> </Text><Decimal>3</Decimal><Text> </Text><Operator>+</Operator><Text> </Text><Decimal>9</Decimal><Text> </Text><Operator>-</Operator><Text> </Text><Decimal>9</Decimal><br/> | ||
51 | <Text></Text><br/> | 51 | <Text></Text><br/> | ||
52 | <Text>the following lines are copied out of Haskell's "Prelude.hs"</Text><br/> | 52 | <Text>the following lines are copied out of Haskell's "Prelude.hs"</Text><br/> | ||
53 | <Text></Text><br/> | 53 | <Text></Text><br/> | ||
54 | <BirdTrack>></BirdTrack><Text> </Text><Keyword>infixl</Keyword><Text> </Text><Decimal>7</Decimal><Text> </Text><Operator>*</Operator><Text>, </Text><Operator>/</Operator><Text>, </Text><Function Infix>`quot`</Function Infix><Text>, </Text><Function Infix>`rem`</Function Infix><Text>, </Text><Function Infix>`div`</Function Infix><Text>, </Text><Function Infix>`mod`</Function Infix><Text>, </Text><Operator>:%</Operator><Text>, </Text><Operator>%</Operator><br/> | 54 | <BirdTrack>></BirdTrack><Text> </Text><Keyword>infixl</Keyword><Text> </Text><Decimal>7</Decimal><Text> </Text><Operator>*</Operator><Text>, </Text><Operator>/</Operator><Text>, </Text><Function Infix>`quot`</Function Infix><Text>, </Text><Function Infix>`rem`</Function Infix><Text>, </Text><Function Infix>`div`</Function Infix><Text>, </Text><Function Infix>`mod`</Function Infix><Text>, </Text><Operator>:%</Operator><Text>, </Text><Operator>%</Operator><br/> | ||
55 | <Text></Text><br/> | 55 | <Text></Text><br/> | ||
56 | <Text></Text><br/> | 56 | <Text></Text><br/> | ||
57 | <Text>everything highlighted except the "a"</Text><br/> | 57 | <Text>everything highlighted except the "a"</Text><br/> | ||
58 | <Text></Text><br/> | 58 | <Text></Text><br/> | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |