Commits

Georg Brandl  committed e0090c6 Merge

Merged in gentoo90/pygments-main (pull request #167)

Minor fixes for RPMSpec and NSIS lexers

  • Participants
  • Parent commits 3b81dcd, c6f3d82

Comments (0)

Files changed (1)

File pygments/lexers/other.py

     tokens = {
         'root': [
             (r'[;\#].*\n', Comment),
-            (r"'.*'", String.Single),
+            (r"'.*?'", String.Single),
             (r'"', String.Double, 'str_double'),
             (r'`', String.Backtick, 'str_backtick'),
             include('macro'),
             include('macro'),
             (r'(?i)^(Name|Version|Release|Epoch|Summary|Group|License|Packager|'
              r'Vendor|Icon|URL|Distribution|Prefix|Patch[0-9]*|Source[0-9]*|'
-             r'Requires\(?[a-z]*\)?|[a-z]+Req|Obsoletes|Provides|Conflicts|'
+             r'Requires\(?[a-z]*\)?|[a-z]+Req|Obsoletes|Suggests|Provides|Conflicts|'
              r'Build[a-z]+|[a-z]+Arch|Auto[a-z]+)(:)(.*)$',
              bygroups(Generic.Heading, Punctuation, using(this))),
             (r'^%description', Name.Decorator, 'description'),
              r'make(?:install)|ghost|patch[0-9]+|find_lang|exclude|verify)',
              Keyword),
             include('interpol'),
-            (r"'.*'", String.Single),
+            (r"'.*?'", String.Single),
             (r'"', String.Double, 'string'),
             (r'.', Text),
         ],