summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblackbird <devnull@localhost>2006-10-22 10:56:46 +0200
committerblackbird <devnull@localhost>2006-10-22 10:56:46 +0200
commitdff25d25e72224c3a1f53bef44a839b747564e21 (patch)
tree699ce8a2260993ca5eaf2e31779d89221ea24d9f
parent73b2c7c6352e2ba46873c7c070189cc8817b6f69 (diff)
downloadpygments-dff25d25e72224c3a1f53bef44a839b747564e21.tar.gz
[svn] added php5 keywords to php lexer
-rw-r--r--pygments/lexers/web.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexers/web.py b/pygments/lexers/web.py
index 5bf0cfcb..3792b885 100644
--- a/pygments/lexers/web.py
+++ b/pygments/lexers/web.py
@@ -249,7 +249,9 @@ class PhpLexer(RegexLexer):
r'echo|else|TRUE|elseif|var|empty|if|xor|enddeclare|include|'
r'virtual|endfor|include_once|while|endforeach|global|__FILE__|'
r'endif|list|__LINE__|endswitch|new|__sleep|endwhile|not|'
- r'array|__wakeup|E_ALL|NULL)\b', Keyword),
+ r'array|__wakeup|E_ALL|NULL|final|php_user_filter|interface|'
+ r'implements|public|private|protected|abstract|clone|try|'
+ r'catch|throw|this)\b', Keyword),
('(true|false|null)\b', Keyword.Constant),
(r'\$[a-zA-Z_][a-zA-Z0-9_]*', Name.Variable),
('[a-zA-Z_][a-zA-Z0-9_]*', Name.Other),