mirror of https://github.com/zachjs/sv2v.git
fix nested conditional preprocessor directives
This commit is contained in:
parent
848f8cbd61
commit
7e37fe4338
|
|
@ -21,7 +21,7 @@ isNewline :: Token -> Bool
|
|||
isNewline (Token t _ _) = t == Spe_Newline
|
||||
|
||||
unskippableDirectives :: [String]
|
||||
unskippableDirectives = ["else", "elsif", "endif"]
|
||||
unskippableDirectives = ["else", "elsif", "endif", "ifdef", "ifndef"]
|
||||
|
||||
preprocess :: [Token] -> (StateT PP IO) [Token]
|
||||
preprocess tokens = pp tokens >>= return . combineNumbers
|
||||
|
|
|
|||
Loading…
Reference in New Issue