Skip to content

Commit b3f9a18

Browse files
Add ripgrep
1 parent b297af0 commit b3f9a18

File tree

120 files changed

+47055
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+47055
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.*.swp
2+
tags
3+
target
4+
/grep/Cargo.lock
5+
/globset/Cargo.lock
6+
/ignore/Cargo.lock
7+
/termcolor/Cargo.lock
8+
/wincolor/Cargo.lock
9+
/deployment
10+
11+
# Snapcraft files
12+
stage
13+
prime
14+
parts
15+
*.snap
16+
*.pyc
17+
ripgrep*_source.tar.bz2
+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
language: rust
2+
env:
3+
global:
4+
- PROJECT_NAME: ripgrep
5+
- RUST_BACKTRACE: full
6+
addons:
7+
apt:
8+
packages:
9+
# For generating man page.
10+
- libxslt1-dev
11+
- asciidoc
12+
- docbook-xsl
13+
- xsltproc
14+
- libxml2-utils
15+
# Needed for completion-function test.
16+
- zsh
17+
# Needed for testing decompression search.
18+
- xz-utils
19+
matrix:
20+
fast_finish: true
21+
include:
22+
# Nightly channel.
23+
# All *nix releases are done on the nightly channel to take advantage
24+
# of the regex library's multiple pattern SIMD search.
25+
- os: linux
26+
rust: nightly
27+
env: TARGET=i686-unknown-linux-musl
28+
- os: linux
29+
rust: nightly
30+
env: TARGET=x86_64-unknown-linux-musl
31+
- os: osx
32+
rust: nightly
33+
# XML_CATALOG_FILES is apparently necessary for asciidoc on macOS.
34+
env: TARGET=x86_64-apple-darwin XML_CATALOG_FILES=/usr/local/etc/xml/catalog
35+
- os: linux
36+
rust: nightly
37+
env: TARGET=arm-unknown-linux-gnueabihf GCC_VERSION=4.8
38+
addons:
39+
apt:
40+
packages:
41+
- gcc-4.8-arm-linux-gnueabihf
42+
- binutils-arm-linux-gnueabihf
43+
- libc6-armhf-cross
44+
- libc6-dev-armhf-cross
45+
# For generating man page.
46+
- libxslt1-dev
47+
- asciidoc
48+
- docbook-xsl
49+
- xsltproc
50+
- libxml2-utils
51+
# Beta channel. We enable these to make sure there are no regressions in
52+
# Rust beta releases.
53+
- os: linux
54+
rust: beta
55+
env: TARGET=x86_64-unknown-linux-musl
56+
- os: linux
57+
rust: beta
58+
env: TARGET=x86_64-unknown-linux-gnu
59+
# Minimum Rust supported channel. We enable these to make sure ripgrep
60+
# continues to work on the advertised minimum Rust version.
61+
- os: linux
62+
rust: 1.20.0
63+
env: TARGET=x86_64-unknown-linux-gnu
64+
- os: linux
65+
rust: 1.20.0
66+
env: TARGET=x86_64-unknown-linux-musl
67+
- os: linux
68+
rust: 1.20.0
69+
env: TARGET=arm-unknown-linux-gnueabihf GCC_VERSION=4.8
70+
addons:
71+
apt:
72+
packages:
73+
- gcc-4.8-arm-linux-gnueabihf
74+
- binutils-arm-linux-gnueabihf
75+
- libc6-armhf-cross
76+
- libc6-dev-armhf-cross
77+
# For generating man page.
78+
- libxslt1-dev
79+
- asciidoc
80+
- docbook-xsl
81+
- xsltproc
82+
- libxml2-utils
83+
install: ci/install.sh
84+
script: ci/script.sh
85+
before_deploy: ci/before_deploy.sh
86+
deploy:
87+
provider: releases
88+
file_glob: true
89+
file: deployment/${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
90+
skip_cleanup: true
91+
on:
92+
condition: $TRAVIS_RUST_VERSION = nightly
93+
branch: master
94+
tags: true
95+
api_key:
96+
secure: "IbSnsbGkxSydR/sozOf1/SRvHplzwRUHzcTjM7BKnr7GccL86gRPUrsrvD103KjQUGWIc1TnK1YTq5M0Onswg/ORDjqa1JEJPkPdPnVh9ipbF7M2De/7IlB4X4qXLKoApn8+bx2x/mfYXu4G+G1/2QdbaKK2yfXZKyjz0YFx+6CNrVCT2Nk8q7aHvOOzAL58vsG8iPDpupuhxlMDDn/UhyOWVInmPPQ0iJR1ZUJN8xJwXvKvBbfp3AhaBiAzkhXHNLgBR8QC5noWWMXnuVDMY3k4f3ic0V+p/qGUCN/nhptuceLxKFicMCYObSZeUzE5RAI0/OBW7l3z2iCoc+TbAnn+JrX/ObJCfzgAOXAU3tLaBFMiqQPGFKjKg1ltSYXomOFP/F7zALjpvFp4lYTBajRR+O3dqaxA9UQuRjw27vOeUpMcga4ZzL4VXFHzrxZKBHN//XIGjYAVhJ1NSSeGpeJV5/+jYzzWKfwSagRxQyVCzMooYFFXzn8Yxdm3PJlmp3GaAogNkdB9qKcrEvRINCelalzALPi0hD/HUDi8DD2PNTCLLMo6VSYtvc685Zbe+KgNzDV1YyTrRCUW6JotrS0r2ULLwnsh40hSB//nNv3XmwNmC/CmW5QAnIGj8cBMF4S2t6ohADIndojdAfNiptmaZOIT6owK7bWMgPMyopo="
97+
branches:
98+
only:
99+
# Pushes and PR to the master branch
100+
- master
101+
# Ruby regex to match tags. Required, or travis won't trigger deploys when
102+
# a new tag is pushed.
103+
- /^\d+\.\d+\.\d+.*$/
104+
notifications:
105+
email:
106+
on_success: never
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/config.rs b/src/config.rs
2+
index c47e6a5..4aaa831 100644
3+
--- a/src/config.rs
4+
+++ b/src/config.rs
5+
@@ -112,6 +112,7 @@ fn trim(x: &mut Vec<u8>) {
6+
7+
/// Returns true if and only if the given byte is an ASCII space character.
8+
fn is_space(b: u8) -> bool {
9+
+ println!("testing");
10+
b == b'\t'
11+
|| b == b'\n'
12+
|| b == b'\x0B'

0 commit comments

Comments
 (0)