diff options
Diffstat (limited to 'tools/sed-enums')
-rw-r--r-- | tools/sed-enums | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/sed-enums b/tools/sed-enums index aa44675..a4e2e25 100644 --- a/tools/sed-enums +++ b/tools/sed-enums @@ -1,3 +1,10 @@ +# eat all comments +/^\s*\/\*/ { + :comment + /\*\/\s*$/ { n; b nocomment } + n; b comment +} +:nocomment # drop if don't start with (typedef)? enum /^\s*(typedef\s)?\s*enum/ ! b # |