Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ed3b86bf
Commit
ed3b86bf
authored
Feb 17, 2008
by
Stefan Monnier
Browse files
(ada-font-lock-syntactic-keywords):
Recognize ''' just like any other char-constant.
parent
596c21cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/ada-mode.el
lisp/progmodes/ada-mode.el
+3
-6
No files found.
lisp/ChangeLog
View file @
ed3b86bf
2008-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/ada-mode.el (ada-font-lock-syntactic-keywords):
Recognize ''' just like any other char-constant.
2008-02-16 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-hooks.el (vc-find-root): Remove initial loop because it's not
lisp/progmodes/ada-mode.el
View file @
ed3b86bf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment