Skip to content

Commit

Permalink
alphaid-re for SIP11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
hvesalai committed Apr 3, 2013
1 parent 89c7138 commit c9dd697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions scala-mode2-fontlock.el
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ Does not continue past limit.
(save-excursion
(goto-char (nth 8 state))
(looking-at "/\\*\\*\\($\\|[^*]\\)")))
;; scaladoc (starts with /** only)
font-lock-doc-face
(if (nth 3 state) font-lock-string-face font-lock-comment-face)))

Expand Down
5 changes: 3 additions & 2 deletions scala-mode2-syntax.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@
"\\(" "_+" scala-syntax:op-re "\\|" "_" "\\)?"))
(defconst scala-syntax:varid-re (concat "[" scala-syntax:lower-group "]" scala-syntax:idrest-re))
(defconst scala-syntax:capitalid-re (concat "[" scala-syntax:upperAndUnderscore-group "]" scala-syntax:idrest-re))
(defconst scala-syntax:plainid-re (concat "\\(" "[" scala-syntax:lower-group scala-syntax:upperAndUnderscore-group "]" scala-syntax:idrest-re
"\\|" scala-syntax:op-re "\\)"))
;; alphaid introduce by SIP11
(defconst scala-syntax:alphaid-re (concat "\\(" "[" scala-syntax:lower-group scala-syntax:upperAndUnderscore-group "]" scala-syntax:idrest-re "\\)"))
(defconst scala-syntax:plainid-re (concat "\\(" scala-syntax:alphaid-re "\\|" scala-syntax:op-re "\\)"))
;; stringlit is referred to, but not defined Scala Language Specification 2.9
;; we define it as consisting of anything but '`' and newline
(defconst scala-syntax:stringlit-re "[^`\n\r]")
Expand Down

0 comments on commit c9dd697

Please sign in to comment.