summaryrefslogtreecommitdiff
path: root/support/emacs
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2003-10-24 08:51:22 +0000
committerschinz <schinz@epfl.ch>2003-10-24 08:51:22 +0000
commit8422906b95bebcbd476e21befecd38ad9afc1a72 (patch)
tree8180ade69ec5df899fd07b679c3e005a8ce81c81 /support/emacs
parentd625849898df6be12292fc1098b63dc8582db79d (diff)
downloadscala-8422906b95bebcbd476e21befecd38ad9afc1a72.tar.gz
scala-8422906b95bebcbd476e21befecd38ad9afc1a72.tar.bz2
scala-8422906b95bebcbd476e21befecd38ad9afc1a72.zip
- updated keywords list
- bug fix: character literals (and escapes in them) work now
Diffstat (limited to 'support/emacs')
-rw-r--r--support/emacs/scala-mode.el13
1 files changed, 7 insertions, 6 deletions
diff --git a/support/emacs/scala-mode.el b/support/emacs/scala-mode.el
index f6cafa71e1..179e98a872 100644
--- a/support/emacs/scala-mode.el
+++ b/support/emacs/scala-mode.el
@@ -42,7 +42,7 @@
"\\|" "\\(" scala-char-re "\\)" "\\)")
"Regular expression matching any Scala literal.")
-(defconst scala-most-special-chars (mapcar 'identity "<>+-*/|@#%&!?$^'`~\\")
+(defconst scala-most-special-chars (mapcar 'identity "<>+-*/|@#%&!?$^`~")
"List of almost all Scala special characters.
Not included in this list are the special characters which are
reserved keywords when used alone.")
@@ -60,11 +60,11 @@ reserved keywords when used alone.")
"Regular expression matching a single Scala special character")
(defconst scala-keywords-re
- (regexp-opt '("abstract" "case" "catch" "class" "def" "do" "else"
- "extends" "final" "for" "if" "import" "new" "object"
- "override" "package" "private" "protected"
- "sealed" "super" "this" "trait" "try" "val" "var"
- "while" "with" "yield")
+ (regexp-opt '("abstract" "case" "class" "catch" "def" "do" "else"
+ "extends" "final" "finally" "for" "if" "import" "new" "object"
+ "override" "package" "private" "protected" "return"
+ "sealed" "super" "this" "throw" "trait" "try" "val" "var"
+ "with" "while" "yield")
'words))
(defconst scala-constants-re
@@ -668,6 +668,7 @@ When started, run `scala-mode-hook'.
;; strings and character literals
(modify-syntax-entry ?\" "\"" scala-mode-syntax-table)
(modify-syntax-entry ?\' "\"" scala-mode-syntax-table)
+(modify-syntax-entry ?\\ "\\" scala-mode-syntax-table)
;; different kinds of "parenthesis"
(modify-syntax-entry ?\( "()" scala-mode-syntax-table)