Function: sh-mode--treesit-other-keywords

sh-mode--treesit-other-keywords is a byte-compiled function defined in sh-script.el.gz.

Signature

(sh-mode--treesit-other-keywords)

Documentation

Return a list others of key/reserved words.

These words are fontified with regex-based queries as they are not part of tree-sitter-bash's grammar.

See sh-mode--treesit-other-keywords and sh-mode--treesit-settings).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defun sh-mode--treesit-other-keywords ()
  "Return a list `others' of key/reserved words.
These words are fontified with regex-based queries as they are
not part of tree-sitter-bash's grammar.

See `sh-mode--treesit-other-keywords' and
`sh-mode--treesit-settings')."
  (let ((minimal sh-mode--treesit-keywords)
        (all (append (sh-feature sh-leading-keywords)
                     (sh-feature sh-other-keywords)))
        (others))
    (dolist (keyword all others)
      (if (not (member keyword minimal))
          (setq others (cons keyword others))))))