Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
899aa0de
Commit
899aa0de
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2005-07-30 14:11:51 by afrisch] Empty log message
Original author: afrisch Date: 2005-07-30 14:11:51+00:00
parent
52c8e1a8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
web/ocaml.xml
View file @
899aa0de
This diff is collapsed.
Click to expand it.
web/site.cd
View file @
899aa0de
...
...
@@ -40,6 +40,7 @@ let [<site>[ <title>site
(* Highlighting text between {{...}} *)
let highlight (String -> [ (Char | H.strong | H.i)* ] )
| [ '{{ON}}'; rest ] -> xhighlight rest
| [ '{{%%' h ::(Char *?) '%%}}' ; rest ] ->
[
<strong
class=
"highlight"
>
[
<i>
h]; highlight rest ]
| [ '{{' h ::(Char *?) '}}' ; rest ] ->
...
...
@@ -53,6 +54,13 @@ let highlight (String -> [ (Char | H.strong | H.i)* ] )
| [ c; rest ] -> [ c; highlight rest ]
| [] -> []
let xhighlight (String -> [ (Char | H.strong | H.i)* ] )
| [ x::('}}' | ':}' | '{{' | '{:') h::Char*?
y::('}}' | ':}' | '{:' | '{{'); rest ] ->
[ !x
<strong
class=
"highlight"
>
h !y; xhighlight rest ]
| [ c; rest ] -> [ c; xhighlight rest ]
| [] -> []
(* Split a comma-separated string *)
let split_comma (String -> [String*])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment