0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-09 11:31:34 +01:00
gitea/vendor/github.com/src-d/go-oniguruma
Lauris BH ad2642a8aa
Language statistics bar for repositories (#8037)
* Implementation for calculating language statistics

Impement saving code language statistics to database

Implement rendering langauge stats

Add primary laguage to show in repository list

Implement repository stats indexer queue

Add indexer test

Refactor to use queue module

* Do not timeout for queues
2020-02-11 11:34:17 +02:00
..
.travis.yml Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
chelper.c Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
chelper.h Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
constants.go Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
go.mod Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
LICENSE Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
quotemeta.go Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
README.md Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00
regex.go Language statistics bar for repositories (#8037) 2020-02-11 11:34:17 +02:00

go-oniguruma

Build Status

This repository is a fork of moovweb/rubex - a simple regular expression library (based on oniguruma) that supports Ruby's regex syntax.

The rubex was originally created by Zhigang Chen (zhigang.chen@moovweb.com or zhigangc@gmail.com). It implements all the public functions of Go's Regexp package, except LiteralPrefix.

By the benchmark tests in regexp, the library is 40% to 10X faster than Regexp on all but one test. Unlike Go's regexp, this library supports named capture groups and also allow "\\1" and "\\k<name>" in replacement strings. The library calls the oniguruma regex library for regex pattern searching. All replacement code is done in Go.

Install all (oniguruma and rubex):

# linux (debian/ubuntu/...)
sudo apt-get install libonig-dev

# osx (homebrew)
brew install oniguruma

go install -i .