Mercurial > projects > dil
annotate trunk/src/dil_xml.css @ 521:772ffdb18fd4
Fix: added 'Cent' to enum TID.
Updated CSS files.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sat, 15 Dec 2007 22:51:27 +0100 |
parents | 511c14950cac |
children | 84fde575a2fe |
rev | line source |
---|---|
44
5055947e0f98
- Specific operators and comments can be formatted with CSS now.
aziz
parents:
33
diff
changeset
|
1 @charset "utf-8"; |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
2 compilerinfo, sourcecode { |
6 | 3 display: block; |
4 white-space: pre; | |
5 font-family: Monospace; | |
6 font-size: 0.8em; | |
7 } | |
52
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
8 compilerinfo { |
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
9 white-space: normal; |
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
10 border: 1px solid #A22; |
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
11 padding: 0.5em; |
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
12 margin: 1em; |
f65a83c27638
- Fixed the raw string literal scanner. Newlines weren't copied to the buffer. Converting LS and PS to '\n' as well.
aziz
parents:
51
diff
changeset
|
13 } |
51 | 14 compilerinfo error { display: block; } |
312 | 15 /* Number */ |
58 | 16 n { color: teal; } |
312 | 17 /* Keyword */ |
28 | 18 k { color: darkblue; font-weight: bold; } |
312 | 19 /* Line and block comments */ |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
20 c[t=l], c[t=b] { color: green; } |
312 | 21 /* Nested comments */ |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
22 c[t=n] { color: darkgreen; } |
312 | 23 /* Identifier */ |
44
5055947e0f98
- Specific operators and comments can be formatted with CSS now.
aziz
parents:
33
diff
changeset
|
24 i { color: black; } |
312 | 25 /* String literal */ |
9
5d6968cc751e
- Parsing string and character literals now (rudimentary implementation.)
aziz
parents:
6
diff
changeset
|
26 sl { color: red; } |
312 | 27 /* Character literal */ |
14 | 28 cl { color: purple; } |
312 | 29 /* All bracket types */ |
28 | 30 br { color: orange; } |
312 | 31 /* Special tokens */ |
32 st { color: green; font-weight: bold; } | |
328 | 33 /* #line, hash line */ |
34 hl { color: green; } | |
35 /* filespec (e.g. #line number [filespec]) */ | |
36 fs { color: purple;} | |
315 | 37 /* When the first line starts with #! it's a "shebang" */ |
38 shebang { color: gray; } | |
330 | 39 /* Operator */ |
40 op { color: royalblue; } | |
312 | 41 /* Particular operators */ |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
42 op[t=aa] { content: "and"; } /*&& ∧*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
43 op[t=oo] { content: "or"; } /*|| ∨*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
44 op[t=n] { content: "¬"; } /*!*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
45 op[t=ne] { content: "≠"; } /*!=*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
46 op[t=le] { content: "≤"; } /*<=*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
47 op[t=ge] { content: "≥"; } /*>=*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
48 op[t=lg] { content: "≶"; } /*<>*/ |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
49 /* |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
50 d = Declaration |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
51 s = Statement |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
52 e = Expression |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
53 t = Type |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
54 o = Other |
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
55 */ |
521
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
56 o[t=Linkage] i, o[t=Linkage] op |
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
57 { |
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
58 color: red; |
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
59 } |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
60 /* d { background-color: #FFDDDD; } */ |
521
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
61 /* e { background-color: #DDDDFF; } */ |
322
ed4ef0173793
- Moved out large TOK switch case to function printToken().
aziz
parents:
315
diff
changeset
|
62 d[t=Module] i, d[t=Import] i { color: blue; } |
521
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
63 t > i { color: #911; } |
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
64 t > br, t > op { color: #911; } |
772ffdb18fd4
Fix: added 'Cent' to enum TID.
Aziz K?ksal <aziz.koeksal@gmail.com>
parents:
359
diff
changeset
|
65 t[t=Integral] k { color: #911; font-weight: normal; } |