Skip to content

Commit b5c1b07

Browse files
committed
Update a few references to Tree-sitter
1 parent 43dbadd commit b5c1b07

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
[![License GPL 3][badge-license]][copying]
55
[![Lint Status](https://github.com/clojure-emacs/clojure-ts-mode/actions/workflows/lint-emacs.yml/badge.svg)](https://github.com/clojure-emacs/clojure-ts-mode/actions/workflows/lint-emacs.yml)
66

7-
# Clojure Tree-Sitter Mode
7+
# Clojure Tree-sitter Mode
88

99
`clojure-ts-mode` is an Emacs major mode that provides font-lock (syntax
1010
highlighting), indentation, and navigation support for the
1111
[Clojure(Script) programming language](http://clojure.org), powered by the
1212
[tree-sitter-clojure](https://github.com/sogaiu/tree-sitter-clojure)
13-
[tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar.
13+
[Tree-sitter](https://tree-sitter.github.io/tree-sitter/) grammar.
1414

1515
## Rationale
1616

@@ -116,7 +116,7 @@ git clone https://github.com/clojure-emacs/clojure-ts-mode.git
116116

117117
Once installed, evaluate `clojure-ts-mode.el` and you should be ready to go.
118118

119-
### Install tree-sitter grammars
119+
### Install Tree-sitter grammars
120120

121121
> [!NOTE]
122122
>
@@ -139,7 +139,7 @@ option to install it manually, Please, refer to the installation instructions of
139139
each required grammar and make sure you're install the versions expected. (see
140140
`clojure-ts-grammar-recipes` for details)
141141

142-
### Upgrading tree-sitter grammars
142+
### Upgrading Tree-sitter grammars
143143

144144
To reinstall or upgrade Tree-sitter grammars, you can execute:
145145

clojure-ts-mode.el

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
;; Provides font-lock, indentation, and navigation for the
1818
;; Clojure programming language (http://clojure.org).
1919

20-
;; For the tree-sitter grammar this mode is based on,
20+
;; For the Tree-sitter grammar this mode is based on,
2121
;; see https://github.com/sogaiu/tree-sitter-clojure.
2222

2323
;; Using clojure-ts-mode with paredit or smartparens is highly recommended.
@@ -66,7 +66,7 @@
6666
(declare-function treesit-node-child-by-field-name "treesit.c")
6767

6868
(defgroup clojure-ts nil
69-
"Major mode for editing Clojure code with tree-sitter."
69+
"Major mode for editing Clojure code with Tree-sitter."
7070
:prefix "clojure-ts-"
7171
:group 'languages
7272
:link '(url-link :tag "GitHub" "https://github.com/clojure-emacs/clojure-ts-mode")
@@ -89,7 +89,7 @@ itself."
8989
:package-version '(clojure-ts-mode . "0.1.3"))
9090

9191
(defcustom clojure-ts-ensure-grammars t
92-
"When non-nil, ensure required tree-sitter grammars are installed."
92+
"When non-nil, ensure required Tree-sitter grammars are installed."
9393
:safe #'booleanp
9494
:type 'boolean
9595
:package-version '(clojure-ts-mode . "0.2.0"))
@@ -1741,7 +1741,7 @@ Forms between BEG and END are aligned according to
17411741
(dolist (recipe clojure-ts-grammar-recipes)
17421742
(let ((grammar (car recipe)))
17431743
(unless (treesit-language-available-p grammar nil)
1744-
(message "Installing %s tree-sitter grammar" grammar)
1744+
(message "Installing %s Tree-sitter grammar" grammar)
17451745
;; `treesit-language-source-alist' is dynamically scoped.
17461746
;; Binding it in this let expression allows
17471747
;; `treesit-install-language-gramamr' to pick up the grammar recipes
@@ -1757,7 +1757,7 @@ function can also be used to upgrade the grammars if they are outdated."
17571757
(interactive)
17581758
(dolist (recipe clojure-ts-grammar-recipes)
17591759
(let ((grammar (car recipe)))
1760-
(message "Installing %s tree-sitter grammar" grammar)
1760+
(message "Installing %s Tree-sitter grammar" grammar)
17611761
(let ((treesit-language-source-alist clojure-ts-grammar-recipes))
17621762
(treesit-install-language-grammar grammar)))))
17631763

@@ -1932,7 +1932,7 @@ Useful if you want to switch to the `clojure-mode's mode mappings."
19321932
;; nbb scripts are ClojureScript source files
19331933
(add-to-list 'interpreter-mode-alist '("nbb" . clojure-ts-clojurescript-mode))
19341934
(clojure-ts--register-novel-modes)))
1935-
(message "Clojure TS Mode will not be activated as tree-sitter support is missing."))
1935+
(message "Clojure TS Mode will not be activated as Tree-sitter support is missing."))
19361936

19371937
(defvar clojure-ts--find-ns-query
19381938
(treesit-query-compile

0 commit comments

Comments
 (0)