Variable: yaml-hash-key-re

yaml-hash-key-re is a variable defined in yaml-mode.el.

Value

"\\(?:^\\(?:--- \\)?\\|{\\|\\(?:[-,] +\\)+\\) *\\(?:!!?[^ \n]+ +\\)?\\(\\(?:[^-:,#!\n{\\[ ]\\|[^#!\n{\\[ ]\\S-\\)[^#\n]*?\\) *:\\(?: +\\|$\\)"

Documentation

Regexp matching a single YAML hash key.

Source Code

;; Defined in /nix/store/fxfawcfn8g3mqnf4q0lmvgvy0vp3nxrx-emacs-packages-deps/share/emacs/site-lisp/elpa/yaml-mode-20260830.2340/yaml-mode.el
(defconst yaml-hash-key-re
  (concat "\\(?:^\\(?:--- \\)?\\|{\\|\\(?:[-,] +\\)+\\) *"
          "\\(?:" yaml-tag-re " +\\)?"
          "\\(" yaml-bare-scalar-re "\\) *:"
          "\\(?: +\\|$\\)")
  "Regexp matching a single YAML hash key.")