summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McDirmid <sean.mcdirmid@gmail.com>2006-03-16 16:53:39 +0000
committerSean McDirmid <sean.mcdirmid@gmail.com>2006-03-16 16:53:39 +0000
commit14cdf977379a0615a50776d2c3dadb55ab27df13 (patch)
treeb0e43b8a1b11fa8852721c64438a199672fa2e9c
parent3baeaef8b87a843379599ef3fe1ffc99bf00879c (diff)
downloadscala-14cdf977379a0615a50776d2c3dadb55ab27df13.tar.gz
scala-14cdf977379a0615a50776d2c3dadb55ab27df13.tar.bz2
scala-14cdf977379a0615a50776d2c3dadb55ab27df13.zip
Fixed trait presentation highlighting bug.
-rw-r--r--src/compiler/scala/tools/nsc/models/SemanticTokens.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/models/SemanticTokens.scala b/src/compiler/scala/tools/nsc/models/SemanticTokens.scala
index c345226633..511bd1e9bb 100644
--- a/src/compiler/scala/tools/nsc/models/SemanticTokens.scala
+++ b/src/compiler/scala/tools/nsc/models/SemanticTokens.scala
@@ -44,7 +44,7 @@ class SemanticTokens(val compiler: Global) {
def eatKeywords(source : SourceFile, pos : Int) : Int = {
val keywords =
- "package" :: "val" :: "var" :: "def" :: "class" :: "override" :: "case" ::
+ "package" :: "val" :: "var" :: "def" :: "class" :: "trait" :: "override" :: "case" ::
"object" :: "sealed" :: "private" :: "protected" :: Nil;
if (pos != Position.NOPOS) eatKeyword(source, pos, keywords);
else pos;