diff options
author | Ian Hodson <idh@google.com> | 2012-05-14 12:29:36 +0100 |
---|---|---|
committer | Ian Hodson <idh@google.com> | 2012-05-14 16:55:54 +0100 |
commit | 2ee91b4af4353b9e6a9d591c32fedfc58fd4ef35 (patch) | |
tree | 2df7e491809d1d56f94f9db0a23a517c6e99dd63 /doc/mksyntaxwiki | |
parent | 6849b47ff6a92539a62165fd1306f9b6ac52c9b3 (diff) | |
download | regex-re2-2ee91b4af4353b9e6a9d591c32fedfc58fd4ef35.tar.gz |
Added regexp-re2 library to external.android-sdk-support_r11android-cts-4.2_r2android-cts-4.2_r1android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.2_r1android-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1android-4.2.1_r1.2android-4.2.1_r1.1android-4.2.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1tools_r22tools_r21jb-releasejb-mr1.1-releasejb-mr1.1-dev-plus-aospjb-mr1.1-devjb-mr1-releasejb-mr1-dev-plus-aospjb-mr1-devjb-mr0-releasejb-dev
Change-Id: I54e60045f0fee91b64e4d7291e5bb6c6cffb4562
Diffstat (limited to 'doc/mksyntaxwiki')
-rwxr-xr-x | doc/mksyntaxwiki | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/mksyntaxwiki b/doc/mksyntaxwiki new file mode 100755 index 0000000..930b389 --- /dev/null +++ b/doc/mksyntaxwiki @@ -0,0 +1,36 @@ +#!/bin/sh + +cp syntax.txt syntax.wiki +sam -d syntax.wiki <<'!' +,s!`!`````!g +,s!== (([^()]|\([^()]*\))*)!≡ `\1`!g +,s!«!`!g +,s!»!`!g +,s! vim$! <font size="1">VIM</font>!g +,s! pcre$! <font size="1">PCRE</font>!g +,s! perl$! <font size="1">PERL</font>!g +,s!(^[^ ]+) (.*)\n!`\1` \2\n!g +,x g/NOT SUPPORTED/ s!^[^ ]+!<font color="#808080">&</font>! +,s!NOT SUPPORTED!<font size="1">(&)</font>!g +,s!(^[^ ]+) (.*)\n!<tr><td>\1</td><td>\2</td></tr>\n!g +,s!.*:$!<b>&</b>!g +,s!^$!<tr><td></td></tr>!g +,x v/<tr>/ s!.*!<tr><td colspan="2">&</td></tr>! +1,2c +#summary I define UNIX as “30 definitions of regular expressions living under one roof.” —Don Knuth + +<wiki:comment> +GENERATED BY mksyntaxwiki. DO NOT EDIT +</wiki:comment> + +<table border="0" cellpadding="2" cellspacing="2"> +<tr><td colspan="2">This page lists the regular expression syntax accepted by RE2.</td></tr> +<tr><td colspan="2">It also lists syntax accepted by PCRE, PERL, and VIM.</td></tr> +<tr><td colspan="2">Grayed out expressions are not supported by RE2.</td></tr> +. +$a +</table> +. +w +q +! |