mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Update CPPDirective to take Text not Name
This commit is contained in:
parent
04c59ecdab
commit
50e345afb6
@ -200,7 +200,7 @@ contextPattern :: Assignment
|
||||
contextPattern = symbol ContextPattern *> children expressions
|
||||
|
||||
cppDirective :: Assignment
|
||||
cppDirective = makeTerm <$> symbol CppDirective <*> (Syntax.CPPDirective . Name.name <$> source)
|
||||
cppDirective = makeTerm <$> symbol CppDirective <*> (Syntax.CPPDirective <$> source)
|
||||
|
||||
defaultDeclaration :: Assignment
|
||||
defaultDeclaration = makeTerm <$> symbol DefaultDeclaration <*> children (Syntax.DefaultDeclaration <$> manyTerm expression)
|
||||
|
@ -562,7 +562,7 @@ instance Show1 PrefixNegation where liftShowsPrec = genericLiftShowsPrec
|
||||
|
||||
instance Evaluatable PrefixNegation
|
||||
|
||||
newtype CPPDirective a = CPPDirective Name
|
||||
newtype CPPDirective a = CPPDirective Text
|
||||
deriving (Declarations1, Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, Mergeable, Ord, Show, ToJSONFields1, Traversable)
|
||||
|
||||
instance Eq1 CPPDirective where liftEq = genericLiftEq
|
||||
|
Loading…
Reference in New Issue
Block a user