diff options
author | Tim Hatch <tim@timhatch.com> | 2012-10-06 18:14:47 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-10-06 18:14:47 -0700 |
commit | 63ba02420eae47d8918ab2e4b4745814cbebfe8a (patch) | |
tree | a2f46183464bfae98768514bfedc03ee6bffb12c /pygments/lexers/_sourcemodbuiltins.py | |
parent | b3b8c34840c8856094a939d0286d7db6f34b21f2 (diff) | |
download | pygments-63ba02420eae47d8918ab2e4b4745814cbebfe8a.tar.gz |
Fix and update sourcemodbuiltins
Diffstat (limited to 'pygments/lexers/_sourcemodbuiltins.py')
-rw-r--r-- | pygments/lexers/_sourcemodbuiltins.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pygments/lexers/_sourcemodbuiltins.py b/pygments/lexers/_sourcemodbuiltins.py index 05dba846..19c783a0 100644 --- a/pygments/lexers/_sourcemodbuiltins.py +++ b/pygments/lexers/_sourcemodbuiltins.py @@ -546,6 +546,7 @@ FUNCTIONS = ['TopMenuHandler', 'SetMenuExitButton', 'GetMenuExitBackButton', 'SetMenuExitBackButton', + 'SetMenuNoVoteButton', 'CancelMenu', 'GetMenuOptionFlags', 'SetMenuOptionFlags', @@ -940,6 +941,7 @@ FUNCTIONS = ['TopMenuHandler', 'IsDedicatedServer', 'GetEngineTime', 'GetGameTime', + 'GetGameTickCount', 'GetGameDescription', 'GetGameFolderName', 'GetCurrentMap', @@ -1007,9 +1009,16 @@ FUNCTIONS = ['TopMenuHandler', 'SDKCall'] if __name__ == '__main__': + import pprint import re + import sys import urllib - import pprint + + # urllib ends up wanting to import a module called 'math' -- if + # pygments/lexers is in the path, this ends badly. + for i in range(len(sys.path)-1, -1, -1): + if sys.path[i].endswith('/lexers'): + del sys.path[i] def get_version(): f = urllib.urlopen('http://docs.sourcemod.net/api/index.php') |