diff --git a/editor/noq-mode.el b/editor/noq-mode.el index 9e8cd61..a34199c 100644 --- a/editor/noq-mode.el +++ b/editor/noq-mode.el @@ -60,9 +60,11 @@ ,(regexp-opt noq-keywords 'words) . 'font-lock-keyword-face) ;; `Apply` strategies - (,(format "\\(%s\\)[\t ]*|" (mapconcat 'regexp-quote noq-apply-strategies "\\|")) + (,(format ".*|[\!\t ]*\\(%s\\)" (mapconcat 'regexp-quote noq-apply-strategies "\\|")) 1 'font-lock-type-face) - ("\\([0-9]+\\)[\t ]*|" 1 'font-lock-type-face) + (".*|[\!\t ]*\\([0-9]+\\)" 1 'font-lock-type-face) + ;; Reverse + ("\!" . 'font-lock-keyword-face) ;; Variables ("\\(^\\|[^a-zA-Z0-9_]\\)\\([_A-Z][_a-zA-Z0-9]*\\)" 2 'font-lock-variable-name-face)