Variable: haskell-lexeme-char-literal-inside

haskell-lexeme-char-literal-inside is a variable defined in haskell-lexeme.el.

Value

"[^\n'\\]\\|\\\\\\(?:[\"'\\abfnrtv]\\|NUL\\|SOH\\|STX\\|ETX\\|EOT\\|ENQ\\|ACK\\|BEL\\|BS\\|HT\\|LF\\|VT\\|FF\\|CR\\|SO\\|SI\\|DLE\\|DC1\\|DC2\\|DC3\\|DC4\\|NAK\\|SYN\\|ETB\\|CAN\\|EM\\|SUB\\|ESC\\|FS\\|GS\\|RS\\|US\\|SP\\|DEL\\|[0-9]+\\|x\\(?:[0-9a-fA-F]+\\)\\|o\\(?:[0-7]+\\)\\|\\^[]A-Z@^_\\[]\\)"

Documentation

Regexp matching an inside of a character literal.

Note that haskell-lexeme-char-literal-inside matches strictly only escape sequences defined in Haskell Report.

Source Code

;; Defined in /nix/store/9lz2mhw95f9fqxr9mnq46k3f6qz3aq83-emacs-packages-deps/share/emacs/site-lisp/elpa/haskell-mode-20260904.1042/haskell-lexeme.el
(defconst haskell-lexeme-char-literal-inside
  (rx (| (not (any "\n'\\"))
         (: "\\"
            (| "a" "b" "f" "n" "r" "t" "v" "\\" "\"" "'"
               "NUL" "SOH" "STX" "ETX" "EOT" "ENQ" "ACK"
               "BEL" "BS" "HT" "LF" "VT" "FF" "CR" "SO" "SI" "DLE"
               "DC1" "DC2" "DC3" "DC4" "NAK" "SYN" "ETB" "CAN"
               "EM" "SUB" "ESC" "FS" "GS" "RS" "US" "SP" "DEL"
               (regexp "[0-9]+")
               (: "x" (regexp "[0-9a-fA-F]+"))
               (: "o" (regexp "[0-7]+"))
               (: "^" (regexp "[]A-Z@^_\\[]"))))))
  "Regexp matching an inside of a character literal.

Note that `haskell-lexeme-char-literal-inside' matches strictly
only escape sequences defined in Haskell Report.")