fix parsing error with multi-line conditional operators
authorBT Templeton <bt@hcoop.net>
Wed, 17 Jul 2013 20:27:27 +0000 (16:27 -0400)
committerBT Templeton <bt@hcoop.net>
Sat, 20 Jul 2013 19:42:54 +0000 (15:42 -0400)
parsing_c/parsing_hacks.ml

index dfb18a6..db9d4ef 100644 (file)
@@ -1250,6 +1250,7 @@ let rec find_macro_lineparen xs =
              | TCBrace _ when ctx <> InFunction -> false
              | TPtVirg _
              | TDotDot _
+             | TWhy _
                -> false
              | tok when TH.is_binary_operator tok -> false
 
@@ -1299,6 +1300,7 @@ let rec find_macro_lineparen xs =
             | TCBrace _ when ctx <> InFunction -> false
             | TPtVirg _
             | TDotDot _
+            | TWhy _
                 -> false
             | tok when TH.is_binary_operator tok -> false
 
@@ -1360,6 +1362,7 @@ let rec find_macro_lineparen xs =
             | TPtVirg _ -> false
             | TOr _ -> false
             | TCBrace _ when ctx <> InFunction -> false
+            | TWhy _ -> false
             | tok when TH.is_binary_operator tok -> false
 
             | _ -> true