Java Mode: Change the syntax of character @ to prefix syntax
lisp/progmodes/cc-langs.el (c-make-mode-syntax-table): Change the syntax of @ as indicated.
This commit is contained in:
parent
c2fc0c7029
commit
57347554a1
1 changed files with 3 additions and 1 deletions
|
@ -378,12 +378,14 @@ The syntax tables aren't stored directly since they're quite large."
|
|||
(let ((table (make-syntax-table)))
|
||||
(c-populate-syntax-table table)
|
||||
;; Mode specific syntaxes.
|
||||
,(cond ((or (c-major-mode-is 'objc-mode) (c-major-mode-is 'java-mode))
|
||||
,(cond ((c-major-mode-is 'objc-mode)
|
||||
;; Let '@' be part of symbols in ObjC to cope with
|
||||
;; its compiler directives as single keyword tokens.
|
||||
;; This is then necessary since it's assumed that
|
||||
;; every keyword is a single symbol.
|
||||
'(modify-syntax-entry ?@ "_" table))
|
||||
((c-major-mode-is 'java-mode)
|
||||
'(modify-syntax-entry ?@ "'" table))
|
||||
((c-major-mode-is 'pike-mode)
|
||||
'(modify-syntax-entry ?@ "." table)))
|
||||
table)))
|
||||
|
|
Loading…
Add table
Reference in a new issue