Variable: bazel-font-lock-keywords-2

bazel-font-lock-keywords-2 is a variable defined in bazel.el.

Value

(("^\\(?:include\\|module\\|repo\\|visibility\\|workspace\\)\\_>"
  quote font-lock-builtin-face)
 ("^load\\_>" quote font-lock-keyword-face)
 ("\\_<\\(?:and\\|break\\|continue\\|def\\|el\\(?:if\\|se\\)\\|for\\|i[fn]\\|lambda\\|not\\|or\\|pass\\|return\\)\\_>"
  quote font-lock-keyword-face)
 ("\\_<\\(?:a\\(?:s\\(?:sert\\|ync\\)?\\|wait\\)\\|class\\|del\\|except\\|f\\(?:inally\\|rom\\)\\|global\\|i\\(?:mport\\|s\\)\\|nonlocal\\|raise\\|try\\|w\\(?:hile\\|ith\\)\\|yield\\)\\_>"
  quote font-lock-warning-face)
 ("\\_<\\(?:\\(?:Fals\\|Non\\|Tru\\)e\\)\\_>" quote
  font-lock-constant-face))

Documentation

Value of ‘font-lock-keywords’ in ‘bazel-mode’ at font lock level 2.

Source Code

;; Defined in /nix/store/ws8pkszjvcad1rgzqw6wja7qxacylfhn-emacs-packages-deps/share/emacs/site-lisp/elpa/bazel-20261002.1510/bazel.el
(defconst bazel-font-lock-keywords-2
  `(,@bazel-font-lock-keywords-1
    ;; Include keywords and constants.  Keywords for BUILD files are the same as
    ;; Starlark files.  Even if some of them are forbidden in BUILD files, they
    ;; should be highlighted.  See
    ;; https://github.com/bazelbuild/starlark/blob/master/spec.md.  “load” is
    ;; already included in level 1.
    (,(rx symbol-start
          (or "and" "break" "continue" "def" "elif" "else" "for" "if" "in"
              "lambda" "not" "or" "pass" "return")
          symbol-end)
     . 'font-lock-keyword-face)
    ;; Reserved keywords
    (,(rx symbol-start
          (or "as" "assert" "async" "await" "class" "del" "except" "finally"
              "from" "global" "import" "is" "nonlocal" "raise" "try" "while"
              "with" "yield")
          symbol-end)
     . 'font-lock-warning-face)
    ;; Constants
    (,(rx symbol-start (or "True" "False" "None") symbol-end)
     . 'font-lock-constant-face))
  "Value of ‘font-lock-keywords’ in ‘bazel-mode’ at font lock level 2.")