Skip to content

Commit 8c58656

Browse files
committed
update lege
1 parent 3e176ef commit 8c58656

File tree

7 files changed

+29
-21
lines changed

7 files changed

+29
-21
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/augmentable-dev/tickgit
33
go 1.13
44

55
require (
6-
github.com/augmentable-dev/lege v0.0.0-20191022024440-1583f8f6972a
6+
github.com/augmentable-dev/lege v0.0.0-20191023021623-869a91bc405e
77
github.com/hashicorp/hcl/v2 v2.0.0
88
github.com/spf13/cobra v0.0.5
99
github.com/spf13/pflag v1.0.5 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPd
1313
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
1414
github.com/augmentable-dev/lege v0.0.0-20191022024440-1583f8f6972a h1:CNfPUBMEyYvH1yJ/pGkLIisZ65y+EHStYPN72OIy9dk=
1515
github.com/augmentable-dev/lege v0.0.0-20191022024440-1583f8f6972a/go.mod h1:DtuvAW6+SE9e44O6eLaMJp8PFiadmk6NfXslCKYCiB0=
16+
github.com/augmentable-dev/lege v0.0.0-20191023021623-869a91bc405e h1:geKUZgzslZzV3VHxeMCwRhS4Zs/ocu2mTer4+dB3094=
17+
github.com/augmentable-dev/lege v0.0.0-20191023021623-869a91bc405e/go.mod h1:DtuvAW6+SE9e44O6eLaMJp8PFiadmk6NfXslCKYCiB0=
1618
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
1719
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
1820
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=

pkg/todos/todos.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ var LanguageParseOptions map[Language]*lege.ParseOptions = map[Language]*lege.Pa
4343
"Go": CStyleCommentOptions,
4444
"Java": CStyleCommentOptions,
4545
"C": CStyleCommentOptions,
46-
"CPlusPlus": CStyleCommentOptions,
47-
"CSharp": CStyleCommentOptions,
48-
"Javascript": CStyleCommentOptions,
46+
"C++": CStyleCommentOptions,
47+
"C#": CStyleCommentOptions,
48+
"JavaScript": CStyleCommentOptions,
4949
"Python": HashStyleCommentOptions,
50+
"Ruby": HashStyleCommentOptions,
51+
"PHP": CStyleCommentOptions,
5052
}
5153

5254
// SearchFile ...
@@ -56,10 +58,9 @@ func SearchFile(filePath string) ([]*lege.Collection, error) {
5658
return nil, err
5759
}
5860
lang := Language(enry.GetLanguage(filepath.Base(filePath), src))
59-
if lang != "Go" || enry.IsVendor(filePath) {
61+
if enry.IsVendor(filePath) {
6062
return nil, nil
6163
}
62-
// fmt.Println(lang)
6364
options := LanguageParseOptions[lang]
6465
commentParser, err := lege.NewParser(options)
6566
if err != nil {

vendor/github.com/augmentable-dev/lege/collections.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/augmentable-dev/lege/parse.go

Lines changed: 17 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/augmentable-dev/lege/todo.tickgit

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
github.com/agext/levenshtein
33
# github.com/apparentlymart/go-textseg v1.0.0
44
github.com/apparentlymart/go-textseg/textseg
5-
# github.com/augmentable-dev/lege v0.0.0-20191022024440-1583f8f6972a
5+
# github.com/augmentable-dev/lege v0.0.0-20191023021623-869a91bc405e
66
github.com/augmentable-dev/lege
77
# github.com/emirpasic/gods v1.12.0
88
github.com/emirpasic/gods/containers

0 commit comments

Comments
 (0)