Browse Source

Correctly fontify headlines with special keywords

* lisp/org.el (org-set-font-lock-defaults): Fix small error in
  matching group that prevented fontification of keywords like
  org-comment-string and stars in headlines.
Nicolas Goaziou 9 years ago
parent
commit
2a58775d9e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -5814,7 +5814,7 @@ needs to be inserted at a specific position in the font-lock sequence.")
 			 (concat "\\("
 				 org-comment-string "\\|" org-quote-string
 				 "\\)"))
-		 '(1 'org-special-keyword t))
+		 '(2 'org-special-keyword t))
 	   '("^#.*" (0 'font-lock-comment-face t))
 	   ;; Blocks and meta lines
 	   '(org-fontify-meta-lines-and-blocks)