aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasil L. Contovounesios2023-05-22 15:23:39 +0100
committerBasil L. Contovounesios2023-05-22 15:28:01 +0100
commit5c95239aca211147ffd93735a11d4908fc8a6d4d (patch)
tree61d06b6c12504122580aa3da22da951d8383efad
parent6ad041939be794a8e325c23e41262303d288ae93 (diff)
downloademacs-5c95239aca211147ffd93735a11d4908fc8a6d4d.tar.gz
emacs-5c95239aca211147ffd93735a11d4908fc8a6d4d.zip
; Fix markup of some treesit vars in Elisp manual.
* doc/lispref/modes.texi (Parser-based Font Lock): (Parser-based Indentation): * doc/lispref/parsing.texi (Multiple Languages): Use @code in place of @var when the argument is not a metavariable.
-rw-r--r--doc/lispref/modes.texi10
-rw-r--r--doc/lispref/parsing.texi6
2 files changed, 8 insertions, 8 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index 00298d88f43..cb491d52c50 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -4073,8 +4073,8 @@ replacing syntactic font lock, then the regexp-based font lock.
4073 4073
4074Although parser-based font lock doesn't share the same customization 4074Although parser-based font lock doesn't share the same customization
4075variables with regexp-based font lock, it uses similar customization 4075variables with regexp-based font lock, it uses similar customization
4076schemes. The tree-sitter counterpart of @var{font-lock-keywords} is 4076schemes. The tree-sitter counterpart of @code{font-lock-keywords} is
4077@var{treesit-font-lock-settings}. 4077@code{treesit-font-lock-settings}.
4078 4078
4079@cindex tree-sitter fontifications, overview 4079@cindex tree-sitter fontifications, overview
4080@cindex fontifications with tree-sitter, overview 4080@cindex fontifications with tree-sitter, overview
@@ -4108,9 +4108,9 @@ To setup tree-sitter fontification, a major mode should first set
4108@code{treesit-major-mode-setup}. 4108@code{treesit-major-mode-setup}.
4109 4109
4110@defun treesit-font-lock-rules &rest query-specs 4110@defun treesit-font-lock-rules &rest query-specs
4111This function is used to set @var{treesit-font-lock-settings}. It 4111This function is used to set @code{treesit-font-lock-settings}. It
4112takes care of compiling queries and other post-processing, and outputs 4112takes care of compiling queries and other post-processing, and outputs
4113a value that @var{treesit-font-lock-settings} accepts. Here's an 4113a value that @code{treesit-font-lock-settings} accepts. Here's an
4114example: 4114example:
4115 4115
4116@example 4116@example
@@ -4981,7 +4981,7 @@ below: then the major mode needs only to write some indentation rules
4981and the engine takes care of the rest. 4981and the engine takes care of the rest.
4982 4982
4983To enable the parser-based indentation engine, either set 4983To enable the parser-based indentation engine, either set
4984@var{treesit-simple-indent-rules} and call 4984@code{treesit-simple-indent-rules} and call
4985@code{treesit-major-mode-setup}, or equivalently, set the value of 4985@code{treesit-major-mode-setup}, or equivalently, set the value of
4986@code{indent-line-function} to @code{treesit-indent}. 4986@code{indent-line-function} to @code{treesit-indent}.
4987 4987
diff --git a/doc/lispref/parsing.texi b/doc/lispref/parsing.texi
index cba323d3a56..b70f953f8ed 100644
--- a/doc/lispref/parsing.texi
+++ b/doc/lispref/parsing.texi
@@ -1644,9 +1644,9 @@ directly translate into operations shown above.
1644@end example 1644@end example
1645 1645
1646@defun treesit-range-rules &rest query-specs 1646@defun treesit-range-rules &rest query-specs
1647This function is used to set @var{treesit-range-settings}. It 1647This function is used to set @code{treesit-range-settings}. It takes
1648takes care of compiling queries and other post-processing, and outputs 1648care of compiling queries and other post-processing, and outputs a
1649a value that @var{treesit-range-settings} can have. 1649value that @code{treesit-range-settings} can have.
1650 1650
1651It takes a series of @var{query-spec}s, where each @var{query-spec} is 1651It takes a series of @var{query-spec}s, where each @var{query-spec} is
1652a @var{query} preceded by zero or more @var{keyword}/@var{value} 1652a @var{query} preceded by zero or more @var{keyword}/@var{value}