Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: third_party/re2/doc/mksyntaxgo

Issue 12033058: Updated to most recent version RE2 and remove upstreamed patches. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/re2/README.chromium ('k') | third_party/re2/doc/syntax.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2
3 set -e
4 out=$GOROOT/src/pkg/regexp/syntax/doc.go
5 cp syntax.txt $out
6 sam -d $out <<'!'
7 ,x g/NOT SUPPORTED/d
8 /^Unicode character class/,$d
9 ,s/[«»]//g
10 ,x g/^Possessive repetitions:/d
11 ,x g/\\C/d
12 ,x g/Flag syntax/d
13 ,s/.=(true|false)/flag &/g
14 ,s/^Flags:/ Flag syntax is xyz (set) or -xyz (clear) or xy-z (set xy, clear z). The flags are:\n/
15 ,s/\n\n\n+/\n\n/g
16 ,x/(^.* .*\n)+/ | awk -F' ' '{printf(" %-14s %s\n", $1, $2)}'
17 1,2c
18 // Copyright 2012 The Go Authors. All rights reserved.
19 // Use of this source code is governed by a BSD-style
20 // license that can be found in the LICENSE file.
21
22 // DO NOT EDIT. This file is generated by mksyntaxgo from the RE2 distribution.
23
24 /*
25 Package syntax parses regular expressions into parse trees and compiles
26 parse trees into programs. Most clients of regular expressions will use the
27 facilities of package regexp (such as Compile and Match) instead of this package .
28
29 Syntax
30
31 The regular expression syntax understood by this package when parsing with the P erl flag is as follows.
32 Parts of the syntax can be disabled by passing alternate flags to Parse.
33
34 .
35 $a
36 */
37 package syntax
38 .
39 w
40 q
41 !
OLDNEW
« no previous file with comments | « third_party/re2/README.chromium ('k') | third_party/re2/doc/syntax.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698