1. Thomas Aglassinger
  2. pygments-mainframe
  3. Issues
Issue #5 new

Improved heuristic for guessing Rexx

Thomas Aglassinger
repo owner created an issue

The following changes should reduce the risc of the Rexx lexer guessing C/C++/C#/Java code to be Rexx:

  1. Analyse only text outside of /* ... */ and // ... comments. The latter is no Rexx comment rather an operator, but ignoring the remainder of a line with a mathematical expression should not have any impact on the basic language analysis.

  2. Check for lines ending in {and }; if both a present, the source code cannot be Rexx.

Comments (0)

  1. Log in to comment