token return string "line-" prefix

Hello, the manual says: “When a style is prefixed by "line-" or "line-background-" , the style will be applied to the whole line, analogous to what the addLineClass method does—styling the "text" in the simple case, and the "background" element when "line-background-" is prefixed.”.

When i prefix the return value of a modes token function with “line-”, it fails to find the style. Im not sure what im doing wrong, have i misunderstood something? Thanks.

You’ll have to be a bit clearer about what you are doing and what you expect to happen. When I make a token return something like "line-foo", I’m seeing the "foo" class added to the line on which the token appears.