emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/scala-mode 5299b4a 205/217: feat: add Scala 3 soft keyword


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 5299b4a 205/217: feat: add Scala 3 soft keywords (as regular keywords)
Date: Sun, 29 Aug 2021 11:31:13 -0400 (EDT)

branch: elpa/scala-mode
commit 5299b4ab0569094ee548ab7443534f5866cbef52
Author: Keith Pinson <keith.pinson@banno.com>
Commit: Keith Pinson <keith.pinson@banno.com>

    feat: add Scala 3 soft keywords (as regular keywords)
---
 scala-mode-syntax.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scala-mode-syntax.el b/scala-mode-syntax.el
index 6d65008..995485b 100644
--- a/scala-mode-syntax.el
+++ b/scala-mode-syntax.el
@@ -288,7 +288,13 @@
                 "if" "implicit" "import" "lazy" "match" "new" "object"
                 "override" "package" "private" "protected" "return" "sealed"
                 "then" "throw" "trait" "try" "type" "val" "var" "while"
-                "with" "yield" "inline") 'words))
+                "with" "yield"
+                ;; "Soft" keywords 
https://dotty.epfl.ch/docs/internals/syntax.html#soft-keywords
+                ;; Presumably this means they do not apply in all contexts. Do
+                ;; not know of a way to support this in Emacs, so preferring
+                ;; supporting them everywhere, as regular keywords.
+                "as" "derives" "end" "extension" "inline" "opaque" "open"
+                "transparent" "using") 'words))
 
 (defconst scala-syntax:other-keywords-re
   (concat "\\(^\\|[^`'_]\\)\\(" scala-syntax:other-keywords-unsafe-re "\\)"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]