Mercurial > projects > dil
diff trunk/src/format.css @ 312:fa0b6f32c1ae
- Added Special to enum TOK.
- Added special tokens to keyword list.
- Added case T.Special for parsing SpecialTokenExpression.
author | aziz |
---|---|
date | Wed, 15 Aug 2007 19:19:00 +0000 |
parents | 9c866aadcb5b |
children | 29c33ce6c5bb |
line wrap: on
line diff
--- a/trunk/src/format.css Wed Aug 15 17:37:03 2007 +0000 +++ b/trunk/src/format.css Wed Aug 15 19:19:00 2007 +0000 @@ -12,15 +12,27 @@ margin: 1em; } compilerinfo error { display: block; } +/* Number */ n { color: teal; } +/* Keyword */ k { color: darkblue; font-weight: bold; } +/* Line and block comments */ c[c=l], c[c=b] { color: green; } +/* Nested comments */ c[c=n] { color: darkgreen; } +/* Identifier */ i { color: black; } +/* String literal */ sl { color: red; } +/* Character literal */ cl { color: purple; } +/* Operator */ op { color: royalblue; } +/* All bracket types */ br { color: orange; } +/* Special tokens */ +st { color: green; font-weight: bold; } +/* Particular operators */ op[c=aa] { content: "and"; } /*&& ∧*/ op[c=oo] { content: "or"; } /*|| ∨*/ op[c=n] { content: "¬"; } /*!*/