Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate option --multiline-dotall and --multiline
Using option `--multiline` doesn't necessarily mean the user also wants `--multiline-dotall`. The user may be certain about the number of new lines involved. For example, with this code snippet: ```c if (level == 2U) { parent_irq = irq_parent_level_2(irq); table_idx = parent_offset + irq_from_level_2(irq); } #ifdef CONFIG_3RD_LEVEL_INTERRUPTS else if (level == 3U) { parent_irq = irq_parent_level_3(irq); table_idx = parent_offset + irq_from_level_3(irq); } ``` If I want to search all the #ifdef followed by a else statement, I can use regex '#ifdef.*\n.*else'. If `--multiline-dotall` is used, this regex will match more lines than I expected.
- Loading branch information