branch: elpa/scala-mode commit 5299b4ab0569094ee548ab7443534f5866cbef52 Author: Keith Pinson <keith.pin...@banno.com> Commit: Keith Pinson <keith.pin...@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 "\\)"))