/usr/share/highlight/langDefs/autohotkey.lang is in highlight-common 3.41-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | Description="AutoHotKey"
Keywords={
{ Id=1,
List={"autotrim", "blockinput", "break", "click", "clipwait", "continue",
"control", "controlclick", "controlfocus", "controlget", "controlgetfocus",
"controlgetpos", "controlgettext", "controlmove", "controlsend",
"controlsettext", "coordmode", "critical", "detecthiddentext",
"detecthiddenwindows", "dllcall", "drive", "driveget", "drivespacefree", "edit",
"else", "envadd", "envdiv", "envget", "envmult", "envset", "envsub",
"envupdate", "exit", "exitapp", "fileappend", "filecopy", "filecopydir",
"filecreatedir", "filecreateshortcut", "filedelete", "fileinstall",
"filegetattrib", "filegetshortcut", "filegetsize", "filegettime",
"filegetversion", "filemove", "filemovedir", "fileread", "filereadline",
"filerecycle", "filerecycleempty", "fileremovedir", "fileselectfile",
"fileselectfolder", "displays", "filesetattrib", "filesettime", "formattime",
"getkeystate", "gosub", "goto", "groupactivate", "groupadd", "groupclose",
"groupdeactivate", "gui", "guicontrol", "guicontrolget", "hideautoitwin,",
"hotkey", "if", "ifequal/ifnotequal", "ifexist", "ifgreater", "ifgreaterorequal",
"ifinstring", "ifless/iflessorequal", "ifmsgbox", "ifwinactive", "ifwinexist",
"imagesearch", "inidelete", "iniread", "iniwrite", "input", "inputbox",
"keyhistory", "keywait", "leftclick", "leftclickdrag", "listhotkeys",
"listlines", "listvars", "loop", "loop", "loop", "loop", "loop", "menu",
"mouseclick", "mouseclickdrag", "mousegetpos", "mousemove", "msgbox", "onexit",
"onmessage", "outputdebug", "pause", "pixelgetcolor", "pixelsearch",
"postmessage", "process", "progress", "random", "regexmatch", "regexreplace",
"regdelete", "regread", "regwrite", "registercallback", "reload", "repeat",
"endrepeat", "return", "rightclick", "rightclickdrag", "run", "runas",
"runwait", "send", "sendmessage", "sendmode", "setbatchlines",
"setcapslockstate", "setcontroldelay", "setdefaultmousespeed", "setenv",
"setformat", "setkeydelay", "setmousedelay", "setnumlockstate",
"setscrolllockstate", "setstorecapslockmode", "settimer", "settitlematchmode",
"setwindelay", "setworkingdir", "shutdown", "sleep", "sort", "soundbeep",
"soundget", "soundgetwavevolume", "soundplay", "soundset", "soundsetwavevolume",
"splashimage", "splashtexton", "splashtextoff", "splitpath", "statusbargettext",
"statusbarwait", "stringcasesense", "stringgetpos", "stringleft", "stringlen",
"stringlower", "stringmid", "stringreplace", "stringright", "stringsplit",
"stringtrimleft", "stringtrimright", "stringupper", "suspend", "sysget",
"thread", "tooltip", "transform", "traytip", "urldownloadtofile", "var", "var",
"varsetcapacity", "while-loop", "winactivate", "winactivatebottom", "winclose",
"wingetactivestats", "wingetactivetitle", "wingetclass", "winget", "wingetpos",
"wingettext", "wingettitle", "winhide", "winkill", "winmaximize",
"winmenuselectitem", "winminimize", "winminimizeall", "winminimizeallundo",
"winmove", "winrestore", "winset", "winsettitle", "winshow", "winwait",
"winwaitactive", "winwaitclose", "winwaitnotactive"},
},
-- if :: follows, # is part of a hotkey
{ Id=1,
Regex = [[\#\w+(?!\:\:)]]
},
{ Id=2,
Regex=[[ [\#\!\^\+\&\<\>\*\~\$]*[\w\&\s]+?\:\: ]],
},
{ Id=3,
Regex=[[%\w+?%]],
},
{ Id=4,
Regex=[[\:.+?\:\:]],
}
}
Strings={
Delimiter=[["]],
}
IgnoreCase=true
Comments={
{ Block=false,
Delimiter= { [[;]] },
},
}
Operators=[[\(|\)|\[|\]|\{|\}|\,|\;|\:|\&|<|>|\!|\=|\/|\*|\\|\`|%|\.|\+|\-]]
EnableIndentation=true
|