highlight (version 0.5.0)

simple_detective: Simple detective

Description

This detective only uses semantic information to make its investigation.

Usage

simple_detective(x, ...)

Value

a vector of styles grouping similar tokens together

Arguments

x

output of the parser. The detective is only interested in the token column of the data.

...

ignored

Examples

Run this code
if (FALSE) {
p <- parse( text = deparse( jitter ), keep.source=TRUE )
simple_detective( p )
}

Run the code above in your browser using DataLab