Commits

Anonymous committed 1af43df

[svn] Handle ?= and += and := assignments in Makefiles.

Comments (0)

Files changed (1)

pygments/lexers/text.py

             (r'#.*?\n', Comment),
             (r'(cmdswitches|error|message|include|if|ifdef|ifndef|else|'
              r'else\s*if|else\s*ifdef|else\s*ifndef|endif|undef)\b', Keyword),
-            (r'([a-zA-Z_][a-zA-Z0-9_]*)(\s*)(=)(\s*)',
+            (r'([a-zA-Z_][a-zA-Z0-9_]*)(\s*)([?:+]?=)(\s*)',
              bygroups(Name.Variable, Text, Operator, Text), 'var'),
             (r'"(\\\\|\\"|[^"])*"', String.Double),
             (r"'(\\\\|\\'|[^'])*'", String.Single),