HCoop
/
bpt
/
coccinelle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b9ae60
)
fix parsing error with multi-line conditional operators
author
BT Templeton
<bt@hcoop.net>
Wed, 17 Jul 2013 20:27:27 +0000
(16:27 -0400)
committer
BT Templeton
<bt@hcoop.net>
Sat, 20 Jul 2013 19:42:54 +0000
(15:42 -0400)
parsing_c/parsing_hacks.ml
patch
|
blob
|
blame
|
history
diff --git
a/parsing_c/parsing_hacks.ml
b/parsing_c/parsing_hacks.ml
index
dfb18a6
..
db9d4ef
100644
(file)
--- a/
parsing_c/parsing_hacks.ml
+++ b/
parsing_c/parsing_hacks.ml
@@
-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