Skip to content

Commit

Permalink
Fixes toggle_comment not finding the correct language comment token
Browse files Browse the repository at this point in the history
  • Loading branch information
Luctius authored and archseer committed Jul 20, 2021
1 parent d754c72 commit 585d6f8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ injection-regex = "rust"
file-types = ["rs"]
roots = []
auto-format = true
comment_token = "//"
comment-token = "//"
config = """
{
"cargo": {
Expand All @@ -26,7 +26,7 @@ scope = "source.toml"
injection-regex = "toml"
file-types = ["toml"]
roots = []
comment_token = "#"
comment-token = "#"

indent = { tab-width = 2, unit = " " }

Expand Down Expand Up @@ -54,7 +54,7 @@ scope = "source.c"
injection-regex = "c"
file-types = ["c"] # TODO: ["h"]
roots = []
comment_token = "//"
comment-token = "//"

language-server = { command = "clangd" }
indent = { tab-width = 2, unit = " " }
Expand All @@ -65,7 +65,7 @@ scope = "source.cpp"
injection-regex = "cpp"
file-types = ["cc", "cpp", "hpp", "h"]
roots = []
comment_token = "//"
comment-token = "//"

language-server = { command = "clangd" }
indent = { tab-width = 2, unit = " " }
Expand All @@ -77,7 +77,7 @@ injection-regex = "go"
file-types = ["go"]
roots = ["Gopkg.toml", "go.mod"]
auto-format = true
comment_token = "//"
comment-token = "//"

language-server = { command = "gopls" }
# TODO: gopls needs utf-8 offsets?
Expand All @@ -89,7 +89,7 @@ scope = "source.js"
injection-regex = "^(js|javascript)$"
file-types = ["js"]
roots = []
comment_token = "//"
comment-token = "//"
# TODO: highlights-jsx, highlights-params

indent = { tab-width = 2, unit = " " }
Expand Down Expand Up @@ -129,7 +129,7 @@ scope = "source.python"
injection-regex = "python"
file-types = ["py"]
roots = []
comment_token = "#"
comment-token = "#"

language-server = { command = "pyls" }
# TODO: pyls needs utf-8 offsets
Expand All @@ -150,7 +150,7 @@ scope = "source.ruby"
injection-regex = "ruby"
file-types = ["rb"]
roots = []
comment_token = "#"
comment-token = "#"

language-server = { command = "solargraph", args = ["stdio"] }
indent = { tab-width = 2, unit = " " }
Expand All @@ -161,7 +161,7 @@ scope = "source.bash"
injection-regex = "bash"
file-types = ["sh", "bash"]
roots = []
comment_token = "#"
comment-token = "#"

language-server = { command = "bash-language-server", args = ["start"] }
indent = { tab-width = 2, unit = " " }
Expand All @@ -181,7 +181,7 @@ scope = "source.tex"
injection-regex = "tex"
file-types = ["tex"]
roots = []
comment_token = "%"
comment-token = "%"

indent = { tab-width = 4, unit = "\t" }

Expand All @@ -191,7 +191,7 @@ scope = "source.julia"
injection-regex = "julia"
file-types = ["jl"]
roots = []
comment_token = "#"
comment-token = "#"
language-server = { command = "julia", args = [ "--startup-file=no", "--history-file=no", "-e", "using LanguageServer;using Pkg;import StaticLint;import SymbolServer;env_path = dirname(Pkg.Types.Context().env.project_file);server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, \"\");server.runlinter = true;run(server);" ] }
indent = { tab-width = 2, unit = " " }

Expand All @@ -201,6 +201,6 @@ indent = { tab-width = 2, unit = " " }
# injection-regex = "haskell"
# file-types = ["hs"]
# roots = []
# comment_token = "--"
# comment-token = "--"
#
# indent = { tab-width = 2, unit = " " }

0 comments on commit 585d6f8

Please sign in to comment.