Commits

Georg Brandl committed f77d948

Coding style fix-ups.

Comments (0)

Files changed (1)

pygments/lexers/other.py

 import re
 
 from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, \
-     this, do_insertions
+     this, do_insertions, combined
 from pygments.token import Error, Punctuation, Literal, Token, \
      Text, Comment, Operator, Keyword, Name, String, Number, Generic
 from pygments.util import shebang_matches
             (r'\(', String, '#push'),
             (r'\)', String, '#pop'),
         ],
-       
+
         'escape': [
             (r'([0-8]{3}|n|r|t|b|f|\\|\(|\)|)', String.Escape, '#pop'),
         ],
-    }  
-       
+    }
 
-from pygments.token import *       
+
 class AutohotkeyLexer(RegexLexer):
-    """  
+    """
     For `autohotkey <http://www.autohotkey.com/>`_ source code.
-       
+
     *New in Pygments 1.4.*
     """
     name = 'autohotkey'
     aliases = ['ahk']
     filenames = ['*.ahk', '*.ahkl']
     mimetypes = ['text/x-autohotkey']
-    from pygments.lexer import ExtendedRegexLexer, RegexLexer, \
-    bygroups, using, include, combined
-    tokens = { 		       	
-        'root': [	       
-            (r'^(\s*)(/\*)', bygroups(Whitespace, Comment.Multiline),
+
+    tokens = {
+        'root': [
+            (r'^(\s*)(/\*)', bygroups(Text, Comment.Multiline),
                              'incomment'),
-            (r'^(\s*)(\()', bygroups(Whitespace, Generic), 'incontinuation'),
+            (r'^(\s*)(\()', bygroups(Text, Generic), 'incontinuation'),
             (r'\s+;.*?$', Comment.Singleline),
             (r'^;.*?$', Comment.Singleline),
             (r'[]{}(),;[]', Punctuation),
             (r'(in|is|and|or|not)\b', Operator.Word),
-            (r'\%[a-zA-Z_#@$][a-zA-Z0-9_#@$]*\%', Name.Variable), 
-            (r'!=|==|:=|\.=|<<|>>|[-~+/*%=<>&^|?:!.]', Operator),            
+            (r'\%[a-zA-Z_#@$][a-zA-Z0-9_#@$]*\%', Name.Variable),
+            (r'!=|==|:=|\.=|<<|>>|[-~+/*%=<>&^|?:!.]', Operator),
             include('commands'),
             include('labels'),
             include('builtInFunctions'),
             include('builtInVariables'),
             (r'"', String, combined('stringescape', 'dqs')),
             include('numbers'),
-            (r'[a-zA-Z_#@$][a-zA-Z0-9_#@$]*', Name),  
+            (r'[a-zA-Z_#@$][a-zA-Z0-9_#@$]*', Name),
             (r'\\|\'', Text),
             (r'\`([\,\%\`abfnrtv\-\+;])', String.Escape),
             include('garbage'),
-        ],		       
-        'incomment': [	       
+        ],
+        'incomment': [
             (r'^\s*\*/', Comment.Multiline, '#pop'),
             (r'[^*/]', Comment.Multiline),
             (r'[*/]', Comment.Multiline)
-        ],		       
-        'incontinuation': [      
-            (r'^\s*\)', Generic, '#pop'), 
+        ],
+        'incontinuation': [
+            (r'^\s*\)', Generic, '#pop'),
             (r'[^)]', Generic),
-	    (r'[)]', Generic),
-	    ],
+            (r'[)]', Generic),
+        ],
         'commands': [
             (r'(?i)^(\s*)(global|local|static|'
-        r'#AllowSameLineComments|#ClipboardTimeout|#CommentFlag|'
-        r'#ErrorStdOut|#EscapeChar|#HotkeyInterval|'
-        r'#HotkeyModifierTimeout|#Hotstring|#IfWinActive|'
-        r'#IfWinExist|#IfWinNotActive|#IfWinNotExist|'
-        r'#IncludeAgain|#Include|#InstallKeybdHook|'
-        r'#InstallMouseHook|#KeyHistory|#LTrim|'
-        r'#MaxHotkeysPerInterval|#MaxMem|#MaxThreads|'
-        r'#MaxThreadsBuffer|#MaxThreadsPerHotkey|#NoEnv|'
-        r'#NoTrayIcon|#Persistent|#SingleInstance|'
-        r'#UseHook|#WinActivateForce|AutoTrim|'
-        r'BlockInput|Break|Click|'
-        r'ClipWait|Continue|Control|'
-        r'ControlClick|ControlFocus|ControlGetFocus|'
-        r'ControlGetPos|ControlGetText|ControlGet|'
-        r'ControlMove|ControlSend|ControlSendRaw|'
-        r'ControlSetText|CoordMode|Critical|'
-        r'DetectHiddenText|DetectHiddenWindows|Drive|'
-        r'DriveGet|DriveSpaceFree|Edit|'
-        r'Else|EnvAdd|EnvDiv|'
-        r'EnvGet|EnvMult|EnvSet|'
-        r'EnvSub|EnvUpdate|Exit|'
-        r'ExitApp|FileAppend|FileCopy|'
-        r'FileCopyDir|FileCreateDir|FileCreateShortcut|'
-        r'FileDelete|FileGetAttrib|FileGetShortcut|'
-        r'FileGetSize|FileGetTime|FileGetVersion|'
-        r'FileInstall|FileMove|FileMoveDir|'
-        r'FileRead|FileReadLine|FileRecycle|'
-        r'FileRecycleEmpty|FileRemoveDir|FileSelectFile|'
-        r'FileSelectFolder|FileSetAttrib|FileSetTime|'
-        r'FormatTime|GetKeyState|Gosub|'
-        r'Goto|GroupActivate|GroupAdd|'
-        r'GroupClose|GroupDeactivate|Gui|'
-        r'GuiControl|GuiControlGet|Hotkey|'
-        r'IfEqual|IfExist|IfGreaterOrEqual|'
-        r'IfGreater|IfInString|IfLess|'
-        r'IfLessOrEqual|IfMsgBox|IfNotEqual|'
-        r'IfNotExist|IfNotInString|IfWinActive|'
-        r'IfWinExist|IfWinNotActive|IfWinNotExist|'
-        r'If |ImageSearch|IniDelete|'
-        r'IniRead|IniWrite|InputBox|'
-        r'Input|KeyHistory|KeyWait|'
-        r'ListHotkeys|ListLines|ListVars|'
-        r'Loop|Menu|MouseClickDrag|'
-        r'MouseClick|MouseGetPos|MouseMove|'
-        r'MsgBox|OnExit|OutputDebug|'
-        r'Pause|PixelGetColor|PixelSearch|'
-        r'PostMessage|Process|Progress|'
-        r'Random|RegDelete|RegRead|'
-        r'RegWrite|Reload|Repeat|'
-        r'Return|RunAs|RunWait|'
-        r'Run|SendEvent|SendInput|'
-        r'SendMessage|SendMode|SendPlay|'
-        r'SendRaw|Send|SetBatchLines|'
-        r'SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|'
-        r'SetEnv|SetFormat|SetKeyDelay|'
-        r'SetMouseDelay|SetNumlockState|SetScrollLockState|'
-        r'SetStoreCapslockMode|SetTimer|SetTitleMatchMode|'
-        r'SetWinDelay|SetWorkingDir|Shutdown|'
-        r'Sleep|Sort|SoundBeep|'
-        r'SoundGet|SoundGetWaveVolume|SoundPlay|'
-        r'SoundSet|SoundSetWaveVolume|SplashImage|'
-        r'SplashTextOff|SplashTextOn|SplitPath|'
-        r'StatusBarGetText|StatusBarWait|StringCaseSense|'
-        r'StringGetPos|StringLeft|StringLen|'
-        r'StringLower|StringMid|StringReplace|'
-        r'StringRight|StringSplit|StringTrimLeft|'
-        r'StringTrimRight|StringUpper|Suspend|'
-        r'SysGet|Thread|ToolTip|'
-        r'Transform|TrayTip|URLDownloadToFile|'
-        r'While|WinActivate|WinActivateBottom|'
-        r'WinClose|WinGetActiveStats|WinGetActiveTitle|'
-        r'WinGetClass|WinGetPos|WinGetText|'
-        r'WinGetTitle|WinGet|WinHide|'
-        r'WinKill|WinMaximize|WinMenuSelectItem|'
-        r'WinMinimizeAllUndo|WinMinimizeAll|WinMinimize|'
-        r'WinMove|WinRestore|WinSetTitle|'
-        r'WinSet|WinShow|WinWaitActive|'
-        r'WinWaitClose|WinWaitNotActive|WinWait)\b',
-             bygroups(Whitespace,  Name.Builtin)),
-            ],
+             r'#AllowSameLineComments|#ClipboardTimeout|#CommentFlag|'
+             r'#ErrorStdOut|#EscapeChar|#HotkeyInterval|#HotkeyModifierTimeout|'
+             r'#Hotstring|#IfWinActive|#IfWinExist|#IfWinNotActive|'
+             r'#IfWinNotExist|#IncludeAgain|#Include|#InstallKeybdHook|'
+             r'#InstallMouseHook|#KeyHistory|#LTrim|#MaxHotkeysPerInterval|'
+             r'#MaxMem|#MaxThreads|#MaxThreadsBuffer|#MaxThreadsPerHotkey|'
+             r'#NoEnv|#NoTrayIcon|#Persistent|#SingleInstance|#UseHook|'
+             r'#WinActivateForce|AutoTrim|BlockInput|Break|Click|ClipWait|'
+             r'Continue|Control|ControlClick|ControlFocus|ControlGetFocus|'
+             r'ControlGetPos|ControlGetText|ControlGet|ControlMove|ControlSend|'
+             r'ControlSendRaw|ControlSetText|CoordMode|Critical|'
+             r'DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|'
+             r'DriveSpaceFree|Edit|Else|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|'
+             r'EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|'
+             r'FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|'
+             r'FileDelete|FileGetAttrib|FileGetShortcut|FileGetSize|'
+             r'FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|'
+             r'FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|'
+             r'FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|'
+             r'FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|'
+             r'GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|'
+             r'GuiControlGet|Hotkey|IfEqual|IfExist|IfGreaterOrEqual|IfGreater|'
+             r'IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|'
+             r'IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|'
+             r'IfWinNotExist|If |ImageSearch|IniDelete|IniRead|IniWrite|'
+             r'InputBox|Input|KeyHistory|KeyWait|ListHotkeys|ListLines|'
+             r'ListVars|Loop|Menu|MouseClickDrag|MouseClick|MouseGetPos|'
+             r'MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|'
+             r'PixelSearch|PostMessage|Process|Progress|Random|RegDelete|'
+             r'RegRead|RegWrite|Reload|Repeat|Return|RunAs|RunWait|Run|'
+             r'SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|Send|'
+             r'SetBatchLines|SetCapslockState|SetControlDelay|'
+             r'SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|'
+             r'SetMouseDelay|SetNumlockState|SetScrollLockState|'
+             r'SetStoreCapslockMode|SetTimer|SetTitleMatchMode|'
+             r'SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|'
+             r'SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|'
+             r'SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|'
+             r'SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|'
+             r'StringGetPos|StringLeft|StringLen|StringLower|StringMid|'
+             r'StringReplace|StringRight|StringSplit|StringTrimLeft|'
+             r'StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|'
+             r'Transform|TrayTip|URLDownloadToFile|While|WinActivate|'
+             r'WinActivateBottom|WinClose|WinGetActiveStats|WinGetActiveTitle|'
+             r'WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinGet|WinHide|'
+             r'WinKill|WinMaximize|WinMenuSelectItem|WinMinimizeAllUndo|'
+             r'WinMinimizeAll|WinMinimize|WinMove|WinRestore|WinSetTitle|'
+             r'WinSet|WinShow|WinWaitActive|WinWaitClose|WinWaitNotActive|'
+             r'WinWait)\b', bygroups(Text, Name.Builtin)),
+        ],
         'builtInFunctions': [
-            (r'(?i)(Abs|ACos|Asc|'
-        r'ASin|ATan|Ceil|'
-        r'Chr|Cos|DllCall|'
-        r'Exp|FileExist|Floor|'
-        r'GetKeyState|IL_Add|IL_Create|'
-        r'IL_Destroy|InStr|IsFunc|'
-        r'IsLabel|Ln|Log|'
-        r'LV_Add|LV_Delete|LV_DeleteCol|'
-        r'LV_GetCount|LV_GetNext|LV_GetText|'
-        r'LV_Insert|LV_InsertCol|LV_Modify|'
-        r'LV_ModifyCol|LV_SetImageList|Mod|'
-        r'NumGet|NumPut|OnMessage|'
-        r'RegExMatch|RegExReplace|RegisterCallback|'
-        r'Round|SB_SetIcon|SB_SetParts|'
-        r'SB_SetText|Sin|Sqrt|'
-        r'StrLen|SubStr|Tan|'
-        r'TV_Add|TV_Delete|TV_GetChild|'
-        r'TV_GetCount|TV_GetNext|TV_Get|'
-        r'TV_GetParent|TV_GetPrev|TV_GetSelection|'
-        r'TV_GetText|TV_Modify|VarSetCapacity|'
-        r'WinActive|WinExist|Object|'
-        r'ComObjActive|ComObjArray|ComObjEnwrap|'
-        r'ComObjUnwrap|ComObjParameter|ComObjType|'
-        r'ComObjConnect|ComObjCreate|ComObjGet|'
-        r'ComObjError|ComObjValue|Insert|'
-        r'MinIndex|MaxIndex|Remove|'
-        r'SetCapacity|GetCapacity|GetAddress|'
-        r'_NewEnum|FileOpen|Read|'
-        r'Write|ReadLine|WriteLine|'
-        r'ReadNumType|WriteNumType|RawRead|'
-        r'RawWrite|Seek|Tell|'
-        r'Close|Next|IsObject|'
-        r'StrPut|StrGet|Trim|'
-        r'LTrim|RTrim)\b', Name.Function),            
+            (r'(?i)(Abs|ACos|Asc|ASin|ATan|Ceil|Chr|Cos|DllCall|Exp|FileExist|'
+             r'Floor|GetKeyState|IL_Add|IL_Create|IL_Destroy|InStr|IsFunc|'
+             r'IsLabel|Ln|Log|LV_Add|LV_Delete|LV_DeleteCol|LV_GetCount|'
+             r'LV_GetNext|LV_GetText|LV_Insert|LV_InsertCol|LV_Modify|'
+             r'LV_ModifyCol|LV_SetImageList|Mod|NumGet|NumPut|OnMessage|'
+             r'RegExMatch|RegExReplace|RegisterCallback|Round|SB_SetIcon|'
+             r'SB_SetParts|SB_SetText|Sin|Sqrt|StrLen|SubStr|Tan|TV_Add|'
+             r'TV_Delete|TV_GetChild|TV_GetCount|TV_GetNext|TV_Get|'
+             r'TV_GetParent|TV_GetPrev|TV_GetSelection|TV_GetText|TV_Modify|'
+             r'VarSetCapacity|WinActive|WinExist|Object|ComObjActive|'
+             r'ComObjArray|ComObjEnwrap|ComObjUnwrap|ComObjParameter|'
+             r'ComObjType|ComObjConnect|ComObjCreate|ComObjGet|ComObjError|'
+             r'ComObjValue|Insert|MinIndex|MaxIndex|Remove|SetCapacity|'
+             r'GetCapacity|GetAddress|_NewEnum|FileOpen|Read|Write|ReadLine|'
+             r'WriteLine|ReadNumType|WriteNumType|RawRead|RawWrite|Seek|Tell|'
+             r'Close|Next|IsObject|StrPut|StrGet|Trim|LTrim|RTrim)\b',
+             Name.Function),
         ],
         'builtInVariables': [
-            (r'(?i)(A_AhkPath|A_AhkVersion|A_AppData|'
-        r'A_AppDataCommon|A_AutoTrim|A_BatchLines|'
-        r'A_CaretX|A_CaretY|A_ComputerName|'
-        r'A_ControlDelay|A_Cursor|A_DD|'
-        r'A_DDD|A_DDDD|A_DefaultMouseSpeed|'
-        r'A_Desktop|A_DesktopCommon|A_DetectHiddenText|'
-        r'A_DetectHiddenWindows|A_EndChar|A_EventInfo|'
-        r'A_ExitReason|A_FormatFloat|A_FormatInteger|'
-        r'A_Gui|A_GuiEvent|A_GuiControl|'
-        r'A_GuiControlEvent|A_GuiHeight|A_GuiWidth|'
-        r'A_GuiX|A_GuiY|A_Hour|'
-        r'A_IconFile|A_IconHidden|A_IconNumber|'
-        r'A_IconTip|A_Index|A_IPAddress1|'
-        r'A_IPAddress2|A_IPAddress3|A_IPAddress4|'
-        r'A_ISAdmin|A_IsCompiled|A_IsCritical|'
-        r'A_IsPaused|A_IsSuspended|A_KeyDelay|'
-        r'A_Language|A_LastError|A_LineFile|'
-        r'A_LineNumber|A_LoopField|A_LoopFileAttrib|'
-        r'A_LoopFileDir|A_LoopFileExt|A_LoopFileFullPath|'
-        r'A_LoopFileLongPath|A_LoopFileName|A_LoopFileShortName|'
-        r'A_LoopFileShortPath|A_LoopFileSize|A_LoopFileSizeKB|'
-        r'A_LoopFileSizeMB|A_LoopFileTimeAccessed|A_LoopFileTimeCreated|'
-        r'A_LoopFileTimeModified|A_LoopReadLine|A_LoopRegKey|'
-        r'A_LoopRegName|A_LoopRegSubkey|A_LoopRegTimeModified|'
-        r'A_LoopRegType|A_MDAY|A_Min|'
-        r'A_MM|A_MMM|A_MMMM|'
-        r'A_Mon|A_MouseDelay|A_MSec|'
-        r'A_MyDocuments|A_Now|A_NowUTC|'
-        r'A_NumBatchLines|A_OSType|A_OSVersion|'
-        r'A_PriorHotkey|A_ProgramFiles|A_Programs|'
-        r'A_ProgramsCommon|A_ScreenHeight|A_ScreenWidth|'
-        r'A_ScriptDir|A_ScriptFullPath|A_ScriptName|'
-        r'A_Sec|A_Space|A_StartMenu|'
-        r'A_StartMenuCommon|A_Startup|A_StartupCommon|'
-        r'A_StringCaseSense|A_Tab|A_Temp|'
-        r'A_ThisFunc|A_ThisHotkey|A_ThisLabel|'
-        r'A_ThisMenu|A_ThisMenuItem|A_ThisMenuItemPos|'
-        r'A_TickCount|A_TimeIdle|A_TimeIdlePhysical|'
-        r'A_TimeSincePriorHotkey|A_TimeSinceThisHotkey|A_TitleMatchMode|'
-        r'A_TitleMatchModeSpeed|A_UserName|A_WDay|'
-        r'A_WinDelay|A_WinDir|A_WorkingDir|'
-        r'A_YDay|A_YEAR|A_YWeek|'
-        r'A_YYYY|Clipboard|ClipboardAll|'
-        r'ComSpec|ErrorLevel|ProgramFiles|'
-        r'True|False|A_IsUnicode|'
-        r'A_FileEncoding|A_OSVersion|A_PtrSize)\b', Name.Variable), 
-            ],
+            (r'(?i)(A_AhkPath|A_AhkVersion|A_AppData|A_AppDataCommon|'
+             r'A_AutoTrim|A_BatchLines|A_CaretX|A_CaretY|A_ComputerName|'
+             r'A_ControlDelay|A_Cursor|A_DDDD|A_DDD|A_DD|A_DefaultMouseSpeed|'
+             r'A_Desktop|A_DesktopCommon|A_DetectHiddenText|'
+             r'A_DetectHiddenWindows|A_EndChar|A_EventInfo|A_ExitReason|'
+             r'A_FormatFloat|A_FormatInteger|A_Gui|A_GuiEvent|A_GuiControl|'
+             r'A_GuiControlEvent|A_GuiHeight|A_GuiWidth|A_GuiX|A_GuiY|A_Hour|'
+             r'A_IconFile|A_IconHidden|A_IconNumber|A_IconTip|A_Index|'
+             r'A_IPAddress1|A_IPAddress2|A_IPAddress3|A_IPAddress4|A_ISAdmin|'
+             r'A_IsCompiled|A_IsCritical|A_IsPaused|A_IsSuspended|A_KeyDelay|'
+             r'A_Language|A_LastError|A_LineFile|A_LineNumber|A_LoopField|'
+             r'A_LoopFileAttrib|A_LoopFileDir|A_LoopFileExt|A_LoopFileFullPath|'
+             r'A_LoopFileLongPath|A_LoopFileName|A_LoopFileShortName|'
+             r'A_LoopFileShortPath|A_LoopFileSize|A_LoopFileSizeKB|'
+             r'A_LoopFileSizeMB|A_LoopFileTimeAccessed|A_LoopFileTimeCreated|'
+             r'A_LoopFileTimeModified|A_LoopReadLine|A_LoopRegKey|'
+             r'A_LoopRegName|A_LoopRegSubkey|A_LoopRegTimeModified|'
+             r'A_LoopRegType|A_MDAY|A_Min|A_MM|A_MMM|A_MMMM|A_Mon|A_MouseDelay|'
+             r'A_MSec|A_MyDocuments|A_Now|A_NowUTC|A_NumBatchLines|A_OSType|'
+             r'A_OSVersion|A_PriorHotkey|A_ProgramFiles|A_Programs|'
+             r'A_ProgramsCommon|A_ScreenHeight|A_ScreenWidth|A_ScriptDir|'
+             r'A_ScriptFullPath|A_ScriptName|A_Sec|A_Space|A_StartMenu|'
+             r'A_StartMenuCommon|A_Startup|A_StartupCommon|A_StringCaseSense|'
+             r'A_Tab|A_Temp|A_ThisFunc|A_ThisHotkey|A_ThisLabel|A_ThisMenu|'
+             r'A_ThisMenuItem|A_ThisMenuItemPos|A_TickCount|A_TimeIdle|'
+             r'A_TimeIdlePhysical|A_TimeSincePriorHotkey|A_TimeSinceThisHotkey|'
+             r'A_TitleMatchMode|A_TitleMatchModeSpeed|A_UserName|A_WDay|'
+             r'A_WinDelay|A_WinDir|A_WorkingDir|A_YDay|A_YEAR|A_YWeek|A_YYYY|'
+             r'Clipboard|ClipboardAll|ComSpec|ErrorLevel|ProgramFiles|True|'
+             r'False|A_IsUnicode|A_FileEncoding|A_OSVersion|A_PtrSize)\b',
+             Name.Variable),
+        ],
         'labels': [
-            # hotkeys and labels 
+            # hotkeys and labels
             # technically, hotkey names are limited to named keys and buttons
-            (r'(^\s*)([^:\s\(\"]+?:{1,2})', bygroups(Whitespace, Name.Label)), 
-            (r'(^\s*)(::[^:\s]+?::)', bygroups(Whitespace, Name.Label)),  
-            ],
-        
+            (r'(^\s*)([^:\s\(\"]+?:{1,2})', bygroups(Text, Name.Label)),
+            (r'(^\s*)(::[^:\s]+?::)', bygroups(Text, Name.Label)),
+        ],
         'numbers': [
             (r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
             (r'\d+[eE][+-]?[0-9]+', Number.Float),
         'dqs': [
             (r'"', String, '#pop'),
             include('strings')
-        ],        
+        ],
         'garbage': [
             (r'[^\S\n]', Text),
-#            (r'.', Text),      # no cheating
-            ],
+            # (r'.', Text),      # no cheating
+        ],
     }
 
+
 class MaqlLexer(RegexLexer):
     """
-    Lexer for `GoodData MAQL <https://secure.gooddata.com/docs/html/advanced.metric.tutorial.html>`_
+    Lexer for `GoodData MAQL
+    <https://secure.gooddata.com/docs/html/advanced.metric.tutorial.html>`_
     scripts.
 
     *New in Pygments 1.4.*