Variable: mhtml-ts-mode--treesit-thing-settings
mhtml-ts-mode--treesit-thing-settings is a variable defined in
mhtml-ts-mode.el.gz.
Value
Large value
((html
(sexp
(not
(or (and named "\\`\\(?:document\\|tag_name\\)\\'")
(and anonymous "\\(?:<[!/]\\|[<>]\\)"))))
(list "\\(?:comment\\|doctype\\|element\\)")
(sentence "\\`\\(?:\\(?:attribut\\|tag_nam\\)e\\)\\'")
(text "\\(?:\\(?:commen\\|tex\\)t\\)") (defun "\\(?:element\\)"))
(javascript
(sexp
(not
(or (and named "\\`\\(?:comment\\|program\\)\\'")
(and anonymous "[](),[{}]"))))
(list
"\\_<\\(_for_header\\|ar\\(?:guments\\|ray\\(?:_pattern\\)?\\)\\|c\\(?:lass_body\\|omputed_property_name\\)\\|export_clause\\|formal_parameters\\|jsx_\\(?:e\\(?:lement\\|xpression\\)\\|self_closing_element\\)\\|named_imports\\|object\\(?:_pattern\\)?\\|parenthesized_expression\\|regex\\|s\\(?:tatement_block\\|witch_body\\)\\|template_s\\(?:tring\\|ubstitution\\)\\)\\_>")
(sentence
"\\_<\\(break_statement\\|continue_statement\\|d\\(?:\\(?:ebugger\\|o\\)_statement\\)\\|e\\(?:\\(?:mpty\\|xpression\\)_statement\\)\\|for_\\(?:\\(?:in_\\)?statement\\)\\|i\\(?:\\(?:f\\|mport\\)_statement\\)\\|jsx_\\(?:attribute\\|\\(?:clos\\|open\\)ing_element\\)\\|l\\(?:abeled_statement\\|exical_declaration\\)\\|return_statement\\|switch_statement\\|t\\(?:\\(?:hrow\\|ry\\)_statement\\)\\|variable_declaration\\|w\\(?:\\(?:hile\\|ith\\)_statement\\)\\)\\_>")
(text "\\_<\\(\\(?:com\\|string_frag\\)ment\\)\\_>")
(defun
"\\`\\(?:\\(?:class_declara\\|function_declara\\|lexical_declara\\|method_defini\\|variable_declara\\)tion\\)\\'"))
(css
(sexp
(not
(or (and named "\\`\\(?:\\(?:commen\\|styleshee\\)t\\)\\'")
(and anonymous "[](),[{}]"))))
(list
"\\`\\(?:arguments\\|block\\|feature_query\\|grid_value\\|keyframe_block_list\\|p\\(?:arenthesized_\\(?:query\\|value\\)\\|seudo_\\(?:\\(?:class\\(?:_\\(?:nth_child\\|with_selector\\)\\)?\\|element\\)_arguments\\)\\)\\|selector_query\\)\\'")
(sentence
"\\`\\(?:at_rule\\|charset_statement\\|declaration\\|\\(?:import\\|namespace\\|postcss\\)_statement\\)\\'")
(text "\\`\\(?:comment\\|string_value\\)\\'")
(defun "\\`\\(?:keyframe_block\\|rule_set\\)\\'")))
Documentation
Settings for treesit-thing-settings.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/mhtml-ts-mode.el.gz
(defvar mhtml-ts-mode--treesit-thing-settings
;; In addition to putting together the various definitions, we need to
;; add 'defun' which is used to support `imenu' and 'which-function'.
(list
;; HTML thing settings
(append
(car html-ts-mode--treesit-things-settings)
`((defun ,(regexp-opt (list html-ts-mode--treesit-defun-type-regexp)))))
;; Javascript thing settings
(append
(car js--treesit-thing-settings)
`((defun ,js--treesit-defun-type-regexp)))
;; CSS thing settings
(append
(car css--treesit-thing-settings)
`((defun ,css--treesit-defun-type-regexp))))
"Settings for `treesit-thing-settings'.")