From 853d8555c057dc9e2d8a7f641fbfbb94beee9f2e Mon Sep 17 00:00:00 2001 Message-Id: <853d8555c057dc9e2d8a7f641fbfbb94beee9f2e.1718340793.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 5 Sep 2018 00:31:04 +0100 Subject: [PATCH] el/dot-emacs.el (mdw-fontify-java): Bring Java keyword list up-to-date. Organization: Straylight/Edgeware From: Mark Wooding Also reformat. Added missing keywords `assert', `strictfp'. --- el/dot-emacs.el | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 9b9b939..ac20c56 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2211,14 +2211,23 @@ (defun mdw-fontify-java () ;; Now define things to be fontified. (make-local-variable 'font-lock-keywords) (let ((java-keywords - (mdw-regexps "abstract" "boolean" "break" "byte" "case" "catch" - "char" "class" "const" "continue" "default" "do" - "double" "else" "extends" "final" "finally" "float" - "for" "goto" "if" "implements" "import" "instanceof" - "int" "interface" "long" "native" "new" "package" - "private" "protected" "public" "return" "short" - "static" "switch" "synchronized" "throw" "throws" - "transient" "try" "void" "volatile" "while")) + (mdw-regexps "abstract" "assert" + "boolean" "break" "byte" + "case" "catch" "char" "class" "const" "continue" + "default" "do" "double" + "else" "enum" "extends" + "final" "finally" "float" "for" + "goto" + "if" "implements" "import" "instanceof" "int" + "interface" + "long" + "native" "new" + "package" "private" "protected" "public" + "return" + "short" "static" "strictfp" "switch" "synchronized" + "throw" "throws" "transient" "try" + "void" "volatile" + "while")) (java-constants (mdw-regexps "false" "null" "super" "this" "true"))) -- [mdw]