M. J. Fromberger
bf29b9a924
Use conditional composition instead of sequential.
...
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-10-07 09:39:07 -07:00
M. J. Fromberger
7763fcde19
docs: Update CLI installation instructions.
...
Fixes #243 . The default behaviour for `go get` has changed slightly and we now
need to either provide a module context or disable modules for installation to
work correctly.
Also remove a now-obsolete reference to the source{d} engine CLI.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-10-07 08:34:50 -07:00
M. J. Fromberger
fd3c31c313
Merge pull request #240 from creachadair/whats-up-doc
...
Addresses #239 . The `go get` command fetches the command-line tool, and does not match the import path for the library. To make things more clear:
1. Mention explicitly that `go get` fetches the CLI. Also, to avoid potential
issues with pre-modules Go versions, do the fetch in /tmp.
2. Include an import path explicitly in the source examples.
3. Mention explicitly how to import enry into a modules build.
2019-08-08 11:14:44 -07:00
M. J. Fromberger
e9af1d7187
Improve download and usage examples in README.md.
...
Addresses #239 . The `go get` command fetches the command-line tool, and does
not match the import path for the library. To make things more clear:
1. Mention explicitly that `go get` fetches the CLI. Also, to avoid potential
issues with pre-modules Go versions, do the fetch in /tmp.
2. Include an import path explicitly in the source examples.
3. Mention explicitly how to import enry into a modules build.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com>
2019-08-07 12:04:41 -07:00
Alexander
3c3ea9a95e
Merge pull request #238 from bzz/hotfix-docs
...
Hotfix: typo in docs
2019-08-07 18:07:56 +02:00
Alexander Bezzubov
9bd22dae54
doc: fix typo in MD link
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-08-06 17:22:11 +02:00
Alexander
f608f8d773
Merge pull request #234 from lafriks/feat/update_linguist
...
Sync to linguist v7.5.1
2019-08-06 17:16:57 +02:00
Lauris Bukšis-Haberkorns
4e3e15e80d
Sync to linguist v7.5.1
...
Signed-off-by: Lauris BH <lauris@nix.lv>
2019-08-06 17:18:01 +03:00
Alexander
21b48ffc4a
Merge pull request #235 from bzz/doc-update
...
doc: some long-deserved love to the documentation
2019-08-06 12:00:31 +02:00
Alexander
5ce5a65ddf
Merge pull request #237 from lafriks/feat/osascript_lang
...
Improve shebang detection for osascript when language is specified with -l argument
2019-08-06 11:59:10 +02:00
Alexander Bezzubov
e1fbfaea60
doc: code review feedback
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-08-06 11:57:34 +02:00
Alexander
1723ec0c10
Merge pull request #236 from lafriks/feat/ignore_regex
...
Improve detection of unsupported regexp syntax
2019-08-05 21:35:47 +02:00
Lauris Bukšis-Haberkorns
a4cf6d2ef1
If osascript is called with argument -l it could be different language so do not relay on it
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2019-08-05 22:28:51 +03:00
Lauris Bukšis-Haberkorns
2f5526ddba
Improve detection of unsupported regexp syntax
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2019-08-05 22:24:03 +03:00
Alexander Bezzubov
85641846f8
doc: add documentation some ❤️
...
- add ToC
- hide less relevant section under th #misc
- update examples
- clarify linguist sync practice
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-08-05 12:42:16 +02:00
Alexander
ee9d089406
Merge pull request #233 from lafriks/feat/lang_colors
...
Implement getting HTML color code for languages
2019-07-29 17:32:55 +02:00
Alexander
643f82c24c
Merge pull request #232 from bzz/fix-import-modules
...
Fix: import comment pointing to the latest module version
2019-07-29 17:32:39 +02:00
Lauris Bukšis-Haberkorns
25b29ebdc4
Implement getting color code for languages
...
Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
2019-07-19 23:59:46 +03:00
Alexander Bezzubov
0b4d32dfe2
fix: custom import path comment points to latest module
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-07-08 09:16:59 +02:00
Alexander
6ccf0b6bd1
Merge pull request #227 from bzz/ci-fix-cgo-tests
...
CI: fix cgo profiles
2019-05-08 22:25:49 +02:00
Alexander Bezzubov
f3ceaa6330
token: refactor & simplify test fixtures
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-05-08 22:17:32 +02:00
Alexander Bezzubov
9a7b370b17
regex: in oniguruma profile, switch to ASCII matching
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-05-08 15:31:55 +02:00
Alexander Bezzubov
fb267d3aff
bump src-d/go-onigoruma to v1.1.0
...
A result of:
```
go get github.com/src-d/go-onigoruma
go mod tidy
```
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-05-08 15:29:36 +02:00
Alexander Bezzubov
48fc84a555
ci: bump oniguruma version v5.x -> v6.9.1
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-05-08 15:26:22 +02:00
Alexander Bezzubov
a724a2f841
token: test case for regexp + non-valid UTF8
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-05-07 13:46:36 +02:00
Alexander Bezzubov
8bdc830833
token: new test case with Unicode replacement
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-17 19:28:06 +02:00
Alexander Bezzubov
278eaf1c22
tokenizer: move flex-based to modules
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-17 13:54:34 +02:00
Alexander
ae43e1a91f
Merge pull request #219 from bzz/go-mod
...
Introduce Go modules
2019-04-17 13:39:55 +02:00
Alexander
b6daf5c079
Merge pull request #218 from bzz/tokenizer-flex-cgo
...
New, optional flex-based tokenizer
2019-04-17 13:38:34 +02:00
Alexander Bezzubov
7e136bade8
test: don't export tokenizer fixtures
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-16 19:38:48 +02:00
Alexander Bezzubov
6c7b91cb91
doc: improve API doc on review feedback
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-16 19:38:48 +02:00
Alexander Bezzubov
ada6f15c93
address review feedback
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-16 19:38:48 +02:00
Alexander Bezzubov
7929933eb5
tokenizer: cleanup & attributions
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 21:38:16 +02:00
Alexander Bezzubov
8756fbdcb4
refactor to build tags
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 21:38:16 +02:00
Alexander Bezzubov
553399ed76
tokenizer: port flex-based C impl from linguist
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 21:38:16 +02:00
Alexander Bezzubov
6a5f37e9e2
modules: prepare for v2 release
...
- update go.mod \w v2
- update all import paths
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 21:28:12 +02:00
Alexander Bezzubov
453caf7d19
ci: simplify go & add maintainer to java pom
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-14 19:28:51 +02:00
Alexander Bezzubov
cb765d1243
ci: GOPATH-independent simplifications
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-12 12:16:38 +02:00
Alexander Bezzubov
9a46d6bc8d
ci: test on 2 latest Go version \w modules
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-12 11:51:24 +02:00
Alexander Bezzubov
20c6d2845a
build: gopkg.in -> github.com imports
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-12 11:49:16 +02:00
Alexander Bezzubov
a4a2b1d68a
build: go module defention and deps
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-12 11:47:37 +02:00
Alexander
ab3c26b46d
Merge pull request #224 from bzz/ci-fix-linux-shared-release
...
HOTFIX: enable cgo for linux native lib release on CI
2019-04-12 00:14:58 +02:00
Alexander Bezzubov
ade47c0a22
ci: enable cgo for linux native lib release
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 23:25:27 +02:00
Alexander
8c5e0ceaca
Merge pull request #222 from bzz/ci-workaround
...
CI: workaround for incompatible compiler release binary
2019-04-11 23:02:24 +02:00
Alexander Bezzubov
85d5906b2b
address review feedback - tixing a fypo
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 21:36:29 +02:00
Alexander Bezzubov
85de120c17
ci: export env vars
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 21:35:49 +02:00
Alexander Bezzubov
41478262f3
fix verb mismatch in a format string
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 15:28:49 +02:00
Alexander Bezzubov
110822b014
ci: remove 'sudo: false' as it's deprecated on Travis
...
See https://docs.travis-ci.com/user/reference/trusty/#container-based-infrastructure
and https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration#timeline---its-happening-fast
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 15:10:56 +02:00
Alexander Bezzubov
5fab94b5b9
ci: disable cgo by default
...
With go1.11 `go test` in GOPATH mode somehow
seems to depend on GCC. See https://github.com/golang/go/issues/28065
This change only enables cgo for CI profiles that
need it. Those are the ones that seem to fail
on TravisCI now, presumably due to some compiler
version missmatch.
That is a workaround and does not happen in GO11MODULE mode.
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 15:10:43 +02:00
Alexander Bezzubov
58a81694f6
ci: fix bug that enabled oniguruma for all profiles
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
2019-04-11 15:09:47 +02:00