Skip to content

Commit

Permalink
Rename all smacker to dougthor42
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed Dec 10, 2024
1 parent 8470bc7 commit 8a73cbd
Show file tree
Hide file tree
Showing 113 changed files with 156 additions and 155 deletions.
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@gazelle//:def.bzl", "gazelle")

# gazelle:prefix github.com/smacker/go-tree-sitter
# gazelle:prefix github.com/dougthor42/go-tree-sitter
gazelle(name = "gazelle")

exports_files([
Expand Down Expand Up @@ -69,7 +69,7 @@ go_library(
"wasm_store.h",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter",
importpath = "github.com/dougthor42/go-tree-sitter",
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ use_repo(
go_deps,
"com_github_stretchr_testify",
)

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# go tree-sitter

[![Build Status](https://github.com/smacker/go-tree-sitter/workflows/Test/badge.svg?branch=master)](https://github.com/smacker/go-tree-sitter/actions/workflows/test.yml?query=branch%3Amaster)
[![GoDoc](https://godoc.org/github.com/smacker/go-tree-sitter?status.svg)](https://godoc.org/github.com/smacker/go-tree-sitter)
[![Build Status](https://github.com/dougthor42/go-tree-sitter/workflows/Test/badge.svg?branch=master)](https://github.com/dougthor42/go-tree-sitter/actions/workflows/test.yml?query=branch%3Amaster)
[![GoDoc](https://godoc.org/github.com/dougthor42/go-tree-sitter?status.svg)](https://godoc.org/github.com/dougthor42/go-tree-sitter)

Golang bindings for [tree-sitter](https://github.com/tree-sitter/tree-sitter)

Expand All @@ -14,8 +14,8 @@ import (
"context"
"fmt"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/javascript"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/javascript"
)

parser := sitter.NewParser()
Expand Down Expand Up @@ -48,7 +48,7 @@ This repository provides grammars for many common languages out of the box.

But if you need support for any other language you can keep it inside your own project or publish it as a separate repository to share with the community.

See explanation on how to create a grammar for go-tree-sitter [here](https://github.com/smacker/go-tree-sitter/issues/57).
See explanation on how to create a grammar for go-tree-sitter [here](https://github.com/dougthor42/go-tree-sitter/issues/57).

Known external grammars:

Expand Down
2 changes: 1 addition & 1 deletion _automation/treesitter_updater/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "treesitter_updater_lib",
srcs = ["main.go"],
importpath = "github.com/smacker/go-tree-sitter/_automation/treesitter_updater",
importpath = "github.com/dougthor42/go-tree-sitter/_automation/treesitter_updater",
visibility = ["//visibility:private"],
)

Expand Down
2 changes: 1 addition & 1 deletion _examples/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "_examples_lib",
srcs = ["main.go"],
importpath = "github.com/smacker/go-tree-sitter/_examples",
importpath = "github.com/dougthor42/go-tree-sitter/_examples",
visibility = ["//visibility:private"],
deps = [
"//:go-tree-sitter",
Expand Down
4 changes: 2 additions & 2 deletions _examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"fmt"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/javascript"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/javascript"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion _examples/predicates/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "predicates_lib",
srcs = ["main.go"],
importpath = "github.com/smacker/go-tree-sitter/_examples/predicates",
importpath = "github.com/dougthor42/go-tree-sitter/_examples/predicates",
visibility = ["//visibility:private"],
deps = [
"//:go-tree-sitter",
Expand Down
4 changes: 2 additions & 2 deletions _examples/predicates/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/javascript"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/javascript"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion bash/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/bash",
importpath = "github.com/dougthor42/go-tree-sitter/bash",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion bash/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions bash/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/bash"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/bash"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion bindings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func TestLeakParseInput(t *testing.T) {
assert.Less(t, m.Alloc, uint64(1024*1024))
}

// see https://github.com/smacker/go-tree-sitter/issues/75
// see https://github.com/dougthor42/go-tree-sitter/issues/75
func TestCursorKeepsQuery(t *testing.T) {
source := bytes.Repeat([]byte("1 + 1"), 10000)

Expand Down
2 changes: 1 addition & 1 deletion c/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go_library(
"parser.h",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/c",
importpath = "github.com/dougthor42/go-tree-sitter/c",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion c/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions c/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/c"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/c"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cpp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/cpp",
importpath = "github.com/dougthor42/go-tree-sitter/cpp",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion cpp/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions cpp/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/cpp"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/cpp"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion csharp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ go_library(
],
cgo = True,
copts = ["-Wno-trigraphs"],
importpath = "github.com/smacker/go-tree-sitter/csharp",
importpath = "github.com/dougthor42/go-tree-sitter/csharp",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion csharp/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

// GetLanguage returns a grammar for C# language.
Expand Down
4 changes: 2 additions & 2 deletions csharp/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/csharp"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/csharp"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion css/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/css",
importpath = "github.com/dougthor42/go-tree-sitter/css",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion css/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions css/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/css"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/css"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion cue/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/cue",
importpath = "github.com/dougthor42/go-tree-sitter/cue",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion cue/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions cue/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/cue"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/cue"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion dockerfile/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/dockerfile",
importpath = "github.com/dougthor42/go-tree-sitter/dockerfile",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion dockerfile/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions dockerfile/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/dockerfile"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/dockerfile"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion elixir/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go_library(
"//:common_libs",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/elixir",
importpath = "github.com/dougthor42/go-tree-sitter/elixir",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion elixir/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions elixir/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/elixir"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/elixir"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion elm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ go_library(
],
cgo = True,
cxxopts = ["-std=gnu++11"],
importpath = "github.com/smacker/go-tree-sitter/elm",
importpath = "github.com/dougthor42/go-tree-sitter/elm",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
2 changes: 1 addition & 1 deletion elm/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "C"
import (
"unsafe"

sitter "github.com/smacker/go-tree-sitter"
sitter "github.com/dougthor42/go-tree-sitter"
)

func GetLanguage() *sitter.Language {
Expand Down
4 changes: 2 additions & 2 deletions elm/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"testing"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/elm"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/elm"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"log"
"strings"

sitter "github.com/smacker/go-tree-sitter"
"github.com/smacker/go-tree-sitter/golang"
sitter "github.com/dougthor42/go-tree-sitter"
"github.com/dougthor42/go-tree-sitter/golang"
)

// ExampleCursorTraversal recursively prints the tree using TreeCursor.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/smacker/go-tree-sitter
module github.com/dougthor42/go-tree-sitter

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion golang/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go_library(
"parser.h",
],
cgo = True,
importpath = "github.com/smacker/go-tree-sitter/golang",
importpath = "github.com/dougthor42/go-tree-sitter/golang",
visibility = ["//visibility:public"],
deps = ["//:go-tree-sitter"],
)
Expand Down
Loading

0 comments on commit 8a73cbd

Please sign in to comment.