1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 21:16:12 +03:00

Add a Pair constructor.

This commit is contained in:
Rob Rix 2016-02-13 21:01:52 -05:00
parent 52875fdd99
commit ebc12c9919
2 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,8 @@ data Category =
BinaryOperator
-- | A literal key-value data structure.
| DictionaryLiteral
-- | A pair, e.g. of a key & value
| Pair
-- | A call to a function.
| FunctionCall
-- | A non-standard category, which can be used for comparability.

View File

@ -39,6 +39,7 @@ styleName :: Category -> String
styleName category = "category-" ++ case category of
BinaryOperator -> "binary-operator"
DictionaryLiteral -> "dictionary"
Pair -> "pair"
FunctionCall -> "function_call"
Other string -> string