Skip to content

Commit

Permalink
emacs: highlight and buttonise MERGECOHORTS
Browse files Browse the repository at this point in the history
  • Loading branch information
unhammer committed Apr 19, 2024
1 parent 3b90816 commit 9139743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs/cg.el
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ Don't change without re-evaluating `cg-kw-re' (or all of cg.el).")
"UNPROTECT"
"IFF"
"ADDCOHORT" "REMCOHORT"
"MERGECOHORTS"
"COPY"
"MOVE" "SWITCH"
"EXTERNAL" "DELIMIT"
Expand Down Expand Up @@ -660,7 +661,7 @@ select the whole string \"SELECT:1022:rulename\")."
(yank)
(buffer-substring-no-properties (point-min)(point-max))))))
(if (string-match
"\\(\\(select\\|iff\\|remove\\|map\\|addcohort\\|remcohort\\|switch\\|copy\\|add\\|substitute\\):\\)?\\([0-9]+\\)"
"\\(\\(select\\|iff\\|remove\\|map\\|addcohort\\|remcohort\\|switch\\|copy\\|add\\|substitute\\|mergecohorts\\):\\)?\\([0-9]+\\)"
rule)
(progn (goto-char (point-min))
(forward-line (1- (string-to-number (match-string 3 rule))))
Expand Down

0 comments on commit 9139743

Please sign in to comment.