mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +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
|
contextPattern = symbol ContextPattern *> children expressions
|
||||||
|
|
||||||
cppDirective :: Assignment
|
cppDirective :: Assignment
|
||||||
cppDirective = makeTerm <$> symbol CppDirective <*> (Syntax.CPPDirective . Name.name <$> source)
|
cppDirective = makeTerm <$> symbol CppDirective <*> (Syntax.CPPDirective <$> source)
|
||||||
|
|
||||||
defaultDeclaration :: Assignment
|
defaultDeclaration :: Assignment
|
||||||
defaultDeclaration = makeTerm <$> symbol DefaultDeclaration <*> children (Syntax.DefaultDeclaration <$> manyTerm expression)
|
defaultDeclaration = makeTerm <$> symbol DefaultDeclaration <*> children (Syntax.DefaultDeclaration <$> manyTerm expression)
|
||||||
|
@ -562,7 +562,7 @@ instance Show1 PrefixNegation where liftShowsPrec = genericLiftShowsPrec
|
|||||||
|
|
||||||
instance Evaluatable PrefixNegation
|
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)
|
deriving (Declarations1, Diffable, Eq, Foldable, FreeVariables1, Functor, Generic1, Hashable1, Mergeable, Ord, Show, ToJSONFields1, Traversable)
|
||||||
|
|
||||||
instance Eq1 CPPDirective where liftEq = genericLiftEq
|
instance Eq1 CPPDirective where liftEq = genericLiftEq
|
||||||
|
Loading…
Reference in New Issue
Block a user