Skip to content

Commit 5a021a9

Browse files
committed
Exclude preview commands from primitive tests
1 parent 16c280e commit 5a021a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/nlogo/models/Tokens.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Tokens(model: Model) {
5656
// Note: this works for 3D models, but the 3D primitives don't
5757
// get properly typed as `Reporter` or `Command` by `Colorizer.Namer`. We'd need
5858
// to use a Namer that rely on `ThreeDTokenMapper` when needed. NP 2016-05-16
59-
def primitiveTokenNames: Seq[String] = allTokens
59+
def primitiveTokenNames: Seq[String] = (widgetTokens ++ codeTokens ++ plotTokens)
6060
.filter(t => t.tpe == Reporter || t.tpe == Command)
6161
.map(_.text)
6262
}

0 commit comments

Comments
 (0)