style: more readable ghpr-review-font-lock-keywords
This commit is contained in:
parent
51027ccd66
commit
2df455bfcf
1 changed files with 6 additions and 12 deletions
|
@ -57,18 +57,12 @@
|
||||||
:group 'ghpr)
|
:group 'ghpr)
|
||||||
|
|
||||||
(defvar ghpr-review-font-lock-keywords
|
(defvar ghpr-review-font-lock-keywords
|
||||||
'(("^\\(> \\+[^+]\\)\\(.*\\)$"
|
'(("^\\(> \\+[^+]\\)\\(.*\\)$" (0 'ghpr-review-added-line t))
|
||||||
(0 'ghpr-review-added-line t))
|
("^\\(> \\+\\)$" (0 'ghpr-review-added-line t))
|
||||||
("^\\(> \\+\\)$" ; Handle line with just "> +"
|
("^\\(> -[^-]\\)\\(.*\\)$" (0 'ghpr-review-removed-line t))
|
||||||
(0 'ghpr-review-added-line t))
|
("^\\(> -\\)$" (0 'ghpr-review-removed-line t))
|
||||||
("^\\(> -[^-]\\)\\(.*\\)$"
|
("^<.*$" (0 'ghpr-review-existing-review t))
|
||||||
(0 'ghpr-review-removed-line t))
|
("^>.*$" (0 'ghpr-review-misc-line)))
|
||||||
("^\\(> -\\)$" ; Handle line with just "> -"
|
|
||||||
(0 'ghpr-review-removed-line t))
|
|
||||||
("^<.*$"
|
|
||||||
(0 'ghpr-review-existing-review t))
|
|
||||||
("^>.*$"
|
|
||||||
(0 'ghpr-review-misc-line)))
|
|
||||||
"Font lock keywords for ghpr-review-mode.")
|
"Font lock keywords for ghpr-review-mode.")
|
||||||
|
|
||||||
(defvar-local ghpr--review-diff-content nil
|
(defvar-local ghpr--review-diff-content nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue