1. Georg Brandl
  2. pygments-main
  3. Pull requests

Pull requests

#307 Declined
Repository
Deleted repository
Branch
ivar (eecffce76e48)
Repository
pygments-main
Branch
default

Added support for iVar block parsing

Author
  1. Gaurav Jain
Reviewers
Description

As seen with Issue #933, the lexer fails to identify methods as after parsing the Implementation keyword as it is still in the 'statement' state and methods are only parsed in the 'root' state. The block after the class name needs to have a seperate state similar to the 'function' state so that we return to the 'root' state after exiting the block.

Comments (3)

  1. Gaurav Jain author

    Updated the example files. Without this patch the function signature after implementation block is not highlighted correctly. The function name and parameters are simply colored as regular text.