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:
parent
52875fdd99
commit
ebc12c9919
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user