Documentation
¶
Overview ¶
Package syntaxname finds the style of a syntax token name in a theme's syntax map, for the code editor and the Markdown view.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Closest ¶
Closest finds the style for a token name in a theme's syntax map. It tries the name itself, then the name with its last dotted part removed, and so on, so "function.method.builtin" falls back to "function.method" and then to "function"; when none is in the map, it tries the same for the name's fallback, such as "property" for "selector.class". It returns the key it matched, and false when no key matches.
Types ¶
This section is empty.