Skip to content

Commit

Permalink
feat: add Scala 3 soft keywords (as regular keywords)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith Pinson committed Jul 28, 2020
1 parent 5058a85 commit 5299b4a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scala-mode-syntax.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 "\\)"))
Expand Down

0 comments on commit 5299b4a

Please sign in to comment.