Skip to content

Commit 9c27ceb

Browse files
committed
fix: Clean doc and compile warning
1 parent 589fbf8 commit 9c27ceb

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tree-sitter-langs-build.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ git checkout."
203203

204204
(defun tree-sitter-langs--get-latest (type)
205205
"Return the latest tags/commits of the language repositories.
206-
TYPE should be either `:commits' or `:tags'. If there's no tag, return the
206+
TYPE should be either `:commits' or `:tags'. If there's no tag, return the
207207
latest commit."
208208
(require 'magit)
209209
(tree-sitter-langs--map-repos
@@ -235,7 +235,7 @@ latest commit."
235235
(defconst tree-sitter-langs--bundle-version "0.12.178"
236236
"Version of the grammar bundle.
237237
This should be bumped whenever a language submodule is updated, which should be
238-
infrequent (grammar-only changes). It is different from the version of
238+
infrequent (grammar-only changes). It is different from the version of
239239
`tree-sitter-langs', which can change frequently (when queries change).")
240240

241241
(defconst tree-sitter-langs--bundle-version-file "BUNDLE-VERSION")
@@ -262,7 +262,7 @@ infrequent (grammar-only changes). It is different from the version of
262262
(typescript))
263263
"Languages that depend on another, thus requiring `npm install'.
264264
265-
You can use it as an alist to force install certain dependencies. e.g.,
265+
You can use it as an alist to force install certain dependencies. e.g.,
266266
267267
(cpp (\"tree-sitter-c@0.20.6\"))
268268
@@ -303,7 +303,7 @@ If VERSION and OS are not spcified, use the defaults of
303303
This function requires git and tree-sitter CLI.
304304
305305
If the optional arg CLEAN is non-nil, compile from the revision recorded in this
306-
project (through git submodules), and clean up afterwards. Otherwise, compile
306+
project (through git submodules), and clean up afterwards. Otherwise, compile
307307
from the current state of the grammar repo, without cleanup."
308308
(message "[tree-sitter-langs] Processing %s" lang-symbol)
309309
(unless (executable-find "git")
@@ -443,7 +443,7 @@ from the current state of the grammar repo, without cleanup."
443443
The bundle includes all languages tracked in git submodules.
444444
445445
If the optional arg CLEAN is non-nil, compile from the revisions recorded in
446-
this project (through git submodules), and clean up afterwards. Otherwise,
446+
this project (through git submodules), and clean up afterwards. Otherwise,
447447
compile from the current state of the grammar repos, without cleanup."
448448
(unless (executable-find "tar")
449449
(error "Could not find tar executable (needed to bundle compiled grammars)"))
@@ -472,7 +472,7 @@ compile from the current state of the grammar repos, without cleanup."
472472
;; Disk names in Windows can confuse tar, so we need this option. BSD
473473
;; tar (macOS) doesn't have it, so we don't set it everywhere.
474474
;; https://unix.stackexchange.com/questions/13377/tar/13381#13381.
475-
(tar-opts ))
475+
(tar-opts nil))
476476
(with-temp-file tree-sitter-langs--bundle-version-file
477477
(let ((coding-system-for-write 'utf-8))
478478
(insert tree-sitter-langs--bundle-version)))

tree-sitter-langs.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
;;; Commentary:
1313

14-
;; This is a convenient language bundle for the Emacs package `tree-sitter'. It
15-
;; serves as an interim distribution mechanism, until `tree-sitter' is
14+
;; This is a convenient language bundle for the Emacs package `tree-sitter'.
15+
;; It serves as an interim distribution mechanism, until `tree-sitter' is
1616
;; widespread enough for language-specific major modes to incorporate its
1717
;; functionalities.
1818
;;
@@ -22,8 +22,8 @@
2222
;; Windows, on x86_64. In the future, `tree-sitter-langs' may provide tooling
2323
;; for major modes to do this on their own.
2424
;;
25-
;; 2. Optional highlighting patterns. This is mainly intended for major modes
26-
;; that are not aware of `tree-sitter'. A language major mode that wants to
25+
;; 2. Optional highlighting patterns. This is mainly intended for major modes
26+
;; that are not aware of `tree-sitter'. A language major mode that wants to
2727
;; use `tree-sitter' for syntax highlighting should instead provide the query
2828
;; patterns on its own, using the mechanisms defined by `tree-sitter-hl'.
2929
;;
@@ -231,7 +231,7 @@ See `tree-sitter-langs-repos'."
231231
(defun tree-sitter-langs--hl-query-path (lang-symbol &optional mode)
232232
"Return the highlighting query file for LANG-SYMBOL.
233233
If MODE is non-nil, return the file containing additional MODE-specfic patterns
234-
instead. An example is `terraform-mode'-specific highlighting patterns for HCL."
234+
instead. An example is `terraform-mode'-specific highlighting patterns for HCL."
235235
(concat (file-name-as-directory
236236
(concat tree-sitter-langs--queries-dir
237237
(symbol-name lang-symbol)))

0 commit comments

Comments
 (0)