1. Oldes
  2. pygments-main

Commits

Oldes  committed 64c5749

Correct detection of REBOL header and using "comment" style for everything before it.

  • Participants
  • Parent commits e761072
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/other.py

View file
 
     tokens = {
         'root': [
-            (r'REBOL', Generic.Strong, 'script'),
-            (r'R', Comment),
             (r'[^R]+', Comment),
+            (r'REBOL\s+\[', Generic.Strong, 'script'),
+            (r'R', Comment)
         ],
         'script': [
             (r'\s+', Text),