D22095: Fix CMake add_custom_command() paren highlighting

Steve Mokris noreply at phabricator.kde.org
Tue Jun 25 19:32:06 BST 2019


smokris created this revision.
smokris added a project: Framework: Syntax Highlighting.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
smokris requested review of this revision.

REVISION SUMMARY
  The CMake syntax highlighter was getting confused by balanced
  parentheses in add_custom_command()'s COMMAND arguments.
  This patch turns on the 'nested-parentheses' flag for that
  command, enabling parentheses to be parsed correctly.

TEST PLAN
  Added a test in `autotests/input/highlight.cmake` and updated the corresponding reference output files.

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D22095

AFFECTED FILES
  generators/cmake.yaml
  html/highlight.cmake.html
  input/highlight.cmake
  reference/highlight.cmake.ref
  syntax/cmake.xml

To: smokris
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, gennad, bmortimer, domson, michaelh, genethomas, ngraham, bruns, demsking, cullmann, vkrause, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190625/613e7061/attachment-0001.html>


More information about the KWrite-Devel mailing list