diff options
author | Stefan Monnier <[email protected]> | 2008-02-17 19:24:09 +0000 |
---|---|---|
committer | Stefan Monnier <[email protected]> | 2008-02-17 19:24:09 +0000 |
commit | ed3b86bfb7178c4936a5526c9b8fae38fe06a946 (patch) | |
tree | 800a4293dd41cf1201f3eca45b1c561cdd2ecba9 | |
parent | 596c21cf3241c713723c19b87a19368c268f1321 (diff) |
(ada-font-lock-syntactic-keywords):
Recognize ''' just like any other char-constant.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/progmodes/ada-mode.el | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4abf44350e..3c418f49f9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-02-17 Stefan Monnier <[email protected]> + + * progmodes/ada-mode.el (ada-font-lock-syntactic-keywords): + Recognize ''' just like any other char-constant. + 2008-02-16 Stefan Monnier <[email protected]> * vc-hooks.el (vc-find-root): Remove initial loop because it's not diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index e674f68c84..4f2ffadf4b 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el @@ -5182,12 +5182,9 @@ Return nil if no body was found." (defconst ada-font-lock-syntactic-keywords ;; Mark single quotes as having string quote syntax in 'c' instances. - ;; As a special case, ''' will not be highlighted, but if we do not - ;; set this special case, then the rest of the buffer is highlighted as - ;; a string - ;; This sets the properties of the characters, so that ada-in-string-p - ;; correctly handles '"' too... - '(("[^a-zA-Z0-9)]\\('\\)[^'\n]\\('\\)" (1 (7 . ?')) (2 (7 . ?'))) + ;; We used to explicitly avoid ''' as a special case for fear the buffer + ;; be highlighted as a string, but it seems this fear is unfounded. + '(("[^a-zA-Z0-9)]\\('\\)[^\n]\\('\\)" (1 (7 . ?')) (2 (7 . ?'))) ("^[ \t]*\\(#\\(if\\|else\\|elsif\\|end\\)\\)" (1 (11 . ?\n))))) (defvar ada-font-lock-keywords |