If you type in "if((A AND B) OR C)", "OR" is not highlighted. Reproducible: Always
I think the problem is that "Macro Args" pops context on ) but we need to push on (, too, which is not that trivial, given Macro Args is included at several places
I propose this: https://github.com/jonathanpoelen/syntax-highlighting/commit/0939d3254ec927769b51c87db59c9232cd92599a
Git commit 714f17d79ab73c184bbb36adea8c3cde4989ef91 by Dominik Haumann, on behalf of Jonathan Poelen. Committed on 17/06/2017 at 14:26. Pushed by dhaumann into branch 'master'. CMake: OR/AND not highlighted after expr in () Differential Revision: https://phabricator.kde.org/D6128 M +2 -0 autotests/folding/highlight.cmake.fold M +3 -1 autotests/html/highlight.cmake.html M +2 -0 autotests/input/highlight.cmake M +3 -1 autotests/reference/highlight.cmake.ref M +24 -13 data/syntax/cmake.xml https://commits.kde.org/syntax-highlighting/714f17d79ab73c184bbb36adea8c3cde4989ef91