You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
While the type of a token is generally constraint by the ones Prism's themes support, the authors of language definitions have to choose within this set of supported token which might not perfectly match their language.
The goal of this issue is to establish guidelines to keep the token types across languages consistent and to publish these guidelines on the Prism website.
Don't make any token "punctuation" if it fits into another token type. In other words, "punctuation" is a token of last resort.
"true" and "false" or any two literal pairs which express the same concept are "boolean" tokens.
@Golmote@mAAdhaTTah I would like to collect a few guidelines and make them their own section here. This section will also contain information about what token types are available.
The text was updated successfully, but these errors were encountered:
Motivation
While the type of a token is generally constraint by the ones Prism's themes support, the authors of language definitions have to choose within this set of supported token which might not perfectly match their language.
The goal of this issue is to establish guidelines to keep the token types across languages consistent and to publish these guidelines on the Prism website.
#2073 started it all.
Description
So far, there's only one guideline by @mAAdhaTTah.
@Golmote @mAAdhaTTah I would like to collect a few guidelines and make them their own section here. This section will also contain information about what token types are available.
The text was updated successfully, but these errors were encountered: