Skip to content

Commit

Permalink
[Scala] Added newline bailout for annotation type tails (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Aug 18, 2020
1 parent 2b9ed05 commit 9cd8601
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scala/Scala.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1789,6 +1789,8 @@ contexts:
- match: (?=@{{alphaplainid}})
set:
- include: annotation
- match: \n
pop: true
- match: '(?=\S)'
set: single-type-expression-tail
- match: '[\.#]'
Expand Down
8 changes: 8 additions & 0 deletions Scala/syntax_test_scala.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2263,3 +2263,11 @@ completed: F[_ >: A] => B)
// ^ variable.language.underscore.scala
// ^ punctuation.section.group.begin.scala
// ^ punctuation.section.group.end.scala

{
type Apply = F @uncheckedVariance
type A
// ^^^^ storage.type.scala
// ^ entity.name.type.scala
}

0 comments on commit 9cd8601

Please sign in to comment.