Skip to content

Commit

Permalink
Add a special case for template names
Browse files Browse the repository at this point in the history
  • Loading branch information
DrBluefall committed Apr 20, 2023
1 parent c4810b1 commit a6c8472
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blueprint-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@
(bp-property-regex "[A-Za-z_-]+:\\|styles")
(bp-property-regex-alt "\\[[=A-Za-z_-]+\\]")
(bp-namespace-regex "\\(\\w+\\)\\.")
(bp-class-regex "[[:upper:]]\\w+"))
(bp-class-regex "[[:upper:]]\\w+")
(bp-template-regex (concat "template[[:space:]]+\\(" bp-class-regex "\\):")))
`((,bp-keywords-regex . font-lock-keyword-face)
(,bp-signal-function-regex . '(1 font-lock-function-name-face))
(,bp-signal-name-regex . '(1 font-lock-variable-name-face))
(,bp-template-regex . '(1 font-lock-type-face))
(,bp-property-regex . font-lock-variable-name-face)
(,bp-property-regex-alt . font-lock-variable-name-face)
(,bp-starting-dot . font-lock-keyword-face)
Expand Down

0 comments on commit a6c8472

Please sign in to comment.